gstreamermm, gtkmm, and errors

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

gstreamermm, gtkmm, and errors

Russel Winder
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
Reply | Threaded
Open this post in threaded view
|

Re: gstreamermm, gtkmm, and errors

Marcin Kolny
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
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: <a href="tel:%2B44%2020%207585%202200" value="+442075852200">+44 20 7585 2200
41 Buckmaster Road    m: <a href="tel:%2B44%207770%20465%20077" value="+447770465077">+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




--
Pozdrawiam
Marcin Kolny

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstreamermm, gtkmm, and errors

Russel Winder
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
Reply | Threaded
Open this post in threaded view
|

Re: gstreamermm, gtkmm, and errors

Sebastian Dröge-3
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.
What do you mean with "terminating the playbin"? Shutting it down? In
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