Pausing the pipeline from within a plugin element

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Pausing the pipeline from within a plugin element

Konstantin Miller
Dear all,

I am working on a plugin that receives streaming video data and buffers them in a queue element, which is connected to decodebin. I would like to set the pipeline to the PAUSED state whenever the queue becomes empty and then periodically query its current-level-bytes property until enough data is accumulated to restart playback.

Is it a good practice to call gst_element_set_state on the pipeline from within a plugin element?

Thanks!

Best,
Konstantin

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