gstreamer seeking

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

gstreamer seeking

Krakora Randy

Here’s what I am doing:

 

    Glib::RefPtr<Gst::Event> seekEvent = Gst::EventSeek::create(1.0, Gst::FORMAT_TIME, Gst::SEEK_FLAG_FLUSH,

                                       Gst::SEEK_TYPE_SET, milliseconds*GST_MSECOND,

                                       Gst::SEEK_TYPE_NONE,-1);

    std::cout << "Seek Event seq num = " << seekEvent->get_seqnum() << std::endl;

    my_pipeline_object->send_event(seekEvent);

 

I was expecting a Gst::MESSAGE_ASYNC_DONE with a sequence number that corresponds to the one set above in the Event, but I never see it, although I know the seek completes and seems to work fine, I want to know in software when it is done. Is there a way to be notified of this? I don’t really want to do a blocking call.

 

Any help or guidance is appreciated.


Regards,
Randy

 


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

Re: gstreamer seeking

Wim Taymans
On 05/06/2011 08:50 PM, Krakora Randy wrote:

> Here’s what I am doing:
>
> Glib::RefPtr<Gst::Event> seekEvent = Gst::EventSeek::create(1.0,
> Gst::FORMAT_TIME, Gst::SEEK_FLAG_FLUSH,
>
> Gst::SEEK_TYPE_SET, milliseconds*GST_MSECOND,
>
> Gst::SEEK_TYPE_NONE,-1);
>
> std::cout << "Seek Event seq num = " << seekEvent->get_seqnum() <<
> std::endl;
>
> my_pipeline_object->send_event(seekEvent);
>
> I was expecting a Gst::MESSAGE_ASYNC_DONE with a sequence number that
> corresponds to the one set above in the Event, but I never see it,
> although I know the seek completes and seems to work fine, I want to
> know in software when it is done. Is there a way to be notified of this?
> I don’t really want to do a blocking call.

That's a bug, likely some element not passing the seqnum correctly. You
could file a bug, mentioning the pipeline involved.

Wim

>
> Any help or guidance is appreciated.
>
>
> Regards,
> Randy
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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