SENDING eos element to playbin

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

SENDING eos element to playbin

Sujith reddy
Hi All,

song is playing through a gstreamer pipeline playbin.

Now from another thread  i wanted to stop the playbin.

How can i do these?

After reading some research in the internet we found that we can send the
eos event to sink pad of an element.

Now i am using playbin element.How can i Send eos event to playbin.

Thanks
Sujith



--
Sent from: http://gstreamer-devel.966125.n4.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: SENDING eos element to playbin

Nicolas Dufresne-5
Le jeudi 05 juillet 2018 à 04:11 -0700, Sujith reddy a écrit :

> Hi All,
>
> song is playing through a gstreamer pipeline playbin.
>
> Now from another thread  i wanted to stop the playbin.
>
> How can i do these?
>
> After reading some research in the internet we found that we can send the
> eos event to sink pad of an element.
>
> Now i am using playbin element.How can i Send eos event to playbin.

If you were doing transcoding or something, that would be the way, but
just to stop playback, switch you pipeline to NULL state.

  gst_element_set_state (pipeline, GST_STATE_NULL);

>
> Thanks
> Sujith
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: SENDING eos element to playbin

BGraaf
I use a named pipe to send a signal from another thread and than switch the
pipeline to NULL (like Nicolas told). Works fine.

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:[hidden email]]
Im Auftrag von Nicolas Dufresne
Gesendet: Donnerstag, 5. Juli 2018 19:50
An: Discussion of the development of and with GStreamer
Betreff: Re: SENDING eos element to playbin

Le jeudi 05 juillet 2018 à 04:11 -0700, Sujith reddy a écrit :

> Hi All,
>
> song is playing through a gstreamer pipeline playbin.
>
> Now from another thread  i wanted to stop the playbin.
>
> How can i do these?
>
> After reading some research in the internet we found that we can send the
> eos event to sink pad of an element.
>
> Now i am using playbin element.How can i Send eos event to playbin.

If you were doing transcoding or something, that would be the way, but
just to stop playback, switch you pipeline to NULL state.

  gst_element_set_state (pipeline, GST_STATE_NULL);

>
> Thanks
> Sujith
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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