Using gstreamermm with gtkmm, I am starting a playbin in it's own
Gtk::Window but a Gst::MESSAGE_ERROR is happening. What I want to do is terminate the playbin and it's window, but not the whole application. Can anyone point me at an example of how to handle the error message in the bus message handler to achieve the goal? -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (849 bytes) Download Attachment |
Hi Russel, Please take a look at the example [1]. In your case, instead of quitting a main loop, you should just stop your pipeline. 2017-11-18 16:12 GMT+00:00 Russel Winder <[hidden email]>: Using gstreamermm with gtkmm, I am starting a playbin in it's own -- Pozdrawiam
Marcin Kolny _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Sat, 2017-11-18 at 18:15 +0000, Marcin Kolny wrote:
> Hi Russel, > Please take a look at the example [1]. In your case, instead of > quitting a > main loop, you should just stop your pipeline. > > [1] > https://github.com/GNOME/gstreamermm/blob/master/examples/all_media_p > layer/main.cc#L86 > But that is the question I have, what is the right way of terminating a playbin without terminating the event loop. Hopefully there is another example in that repo that does this. I shall investigate further tomorrow. -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (849 bytes) Download Attachment |
On Sun, 2017-11-19 at 12:42 +0000, Russel Winder wrote:
> On Sat, 2017-11-18 at 18:15 +0000, Marcin Kolny wrote: > > Hi Russel, > > Please take a look at the example [1]. In your case, instead of > > quitting a > > main loop, you should just stop your pipeline. > > > > [1] > > https://github.com/GNOME/gstreamermm/blob/master/examples/all_media > > _p > > layer/main.cc#L86 > > > > But that is the question I have, what is the right way of terminating a > playbin without terminating the event loop. Hopefully there is another > example in that repo that does this. I shall investigate further > tomorrow. that case, just set its state to NULL and get rid of all references to it. -- Sebastian Dröge, Centricular Ltd · https://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (981 bytes) Download Attachment |
Free forum by Nabble | Edit this page |