I'm working on two plugins, one is audio decoder and the second one is modified wasapisink.

My pipeline looks like this:<br><br>

<b>parser->decoder1->my_decoder->modified_wasapi_sink</b><br><br>


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

<b>sinature: gboolean      (*query)        (GstBaseSink *sink, GstQuery *query);</b><br><br>
I'm getting the following message when starting the pipeline:<br><br>

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

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

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

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.<br>
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.<br><br><br>
Thanks.

        
        
        
<br/><hr align="left" width="300" />
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>