The Interface porting between the 0.10 and 1.0 - GstQuery

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

The Interface porting between the 0.10 and 1.0 - GstQuery

FranklinHuang
According to the guide , as following,    
    Some query utility functions no longer use an inout parameter for the
    destination/query format:
So how I modify these APIs ? How I do the query like duration and position in new 1.0 version.

-----------------------------------------------------------------------------------------
Boxed types derived from GstMiniObject.

    The GstStructure is removed from the public API, use the getters to get
    a handle to a GstStructure.


    gst_query_new_application() -> gst_query_new_custom()
    gst_query_parse_formats_length() -> gst_query_parse_n_formats()
    gst_query_parse_formats_nth() -> gst_query_parse_nth_format()

    Some query utility functions no longer use an inout parameter for the
    destination/query format:
      - gst_pad_query_position()
      - gst_pad_query_duration()
      - gst_pad_query_convert()
      - gst_pad_query_peer_position()
      - gst_pad_query_peer_duration()
      - gst_pad_query_peer_convert()
      - gst_element_query_position()
      - gst_element_query_duration()
      - gst_element_query_convert()
    gst_element_get_query_types() and gst_pad_get_query_types() with associated
    functions were removed.
Reply | Threaded
Open this post in threaded view
|

Re: The Interface porting between the 0.10 and 1.0 - GstQuery

FranklinHuang
gst_element_query_duration this function is gone in 1.0 version, how we get
the duration then?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/The-Interface-porting-between-the-0-10-and-1-0-GstQuery-tp4677532p4677533.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: The Interface porting between the 0.10 and 1.0 - GstQuery

Sebastian Dröge-3
On Fr, 2016-05-13 at 04:58 -0700, FranklinHuang wrote:
> gst_element_query_duration this function is gone in 1.0 version, how
> we get the duration then?

It's not gone, but it's also just a wrapper around gst_element_query()
and gst_query_new_duration() and gst_query_parse_duration():
https://cgit.freedesktop.org/gstreamer/gstreamer/tree/gst/gstutils.c#n2277

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: The Interface porting between the 0.10 and 1.0 - GstQuery

FranklinHuang
Thanks reply, yes it do have.