Received buffer without a new-segment.

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

Received buffer without a new-segment.

nosati_shtakor
I'm working on two plugins, one is audio decoder and the second one is modified wasapisink. My pipeline looks like this:

parser->decoder1->my_decoder->modified_wasapi_sink

Once I added a custom 'qurey' function for the GstBaseSink class

sinature: gboolean (*query) (GstBaseSink *sink, GstQuery *query);

I'm getting the following message when starting the pipeline:

sink0-actual-sink-wasapi:
Received buffer without a new-segment. Assuming timestamps start from 0.
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...

(gst-launch-1.0:16996): GStreamer-CRITICAL **: 16:10:39.047: gst_segment_to_running_time: assertion 'segment->format == format' failed


The line with the assert message repeats all the time and there is no output on wasapisink.

I've done some research on this, but I didn't get far. It seems like buffers with no segments can/should be discarded. What I don't understand is who was sending these segments when 'query' function was not overridden? Any help would be appreciated.
Perhaps I should create a new segment and send ti before the playback starts, but I don't know when and where exactly should I do that. Also, information about setting segment time would help.


Thanks.

Sent from the GStreamer-devel mailing list archive at 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: Received buffer without a new-segment.

Vinod Kesti
You have to re look into your my_decoder and modified_wasapi_sink.
May be you are missing the new-segment in your custom event handler
functions.



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