Why can't I send new-segment event?

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

Why can't I send new-segment event?

wl2776
Administrator
Playbin2 doesn't accept new-segment events.

gst_element_send_event(
     GST_ELEMENT(m_player),
    gst_event_new_new_segment( blah-blah-blah)
)

always returns false.

m_player is the instance of playbin2, loaded a MPEG2-PS file.
Reply | Threaded
Open this post in threaded view
|

Re: Why can't I send new-segment event?

michael smith-6-3
On Fri, Jun 25, 2010 at 2:02 AM, wl2776 <[hidden email]> wrote:

>
> Playbin2 doesn't accept new-segment events.
>
> gst_element_send_event(
>     GST_ELEMENT(m_player),
>    gst_event_new_new_segment( blah-blah-blah)
> )
>
> always returns false.
>
> m_player is the instance of playbin2, loaded a MPEG2-PS file.

Of course. playbin2 has no pads, so sending an event to it can't work.

There wouldn't be any meaningful semantics from doing this anyway.
Whatever you're really trying to do; this is certainly completely the
wrong approach.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Why can't I send new-segment event?

wl2776
Administrator
michael smith-6-3 wrote
There wouldn't be any meaningful semantics from doing this anyway.
Whatever you're really trying to do; this is certainly completely the
wrong approach.
I am struggling with the reverse framestepping in the mpeg2 files. It works unstable.
Developers still haven't replied neither to my mails here nor to my bugreports in bugzilla.
Reply | Threaded
Open this post in threaded view
|

Re: Why can't I send new-segment event?

Sandeep Prakash
In reply to this post by wl2776
wl2776 wrote
Playbin2 doesn't accept new-segment events.

gst_element_send_event(
     GST_ELEMENT(m_player),
    gst_event_new_new_segment( blah-blah-blah)
)

always returns false.

m_player is the instance of playbin2, loaded a MPEG2-PS file.
One more thing about the new-segment events is that it can't be sent from outside the
streaming thread. Here is the explanation from the design doc:
       "The NEWSEGMENT event should be sent from the streaming thread and should be
serialized with the buffers."

Plz refer:
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-events.txt
for more information abt events.

Cheers,
Sandeep Prakash
http://sandeepprakash.homeip.net