adder: Set GAP flag on silence buffers we created

This commit is contained in:
Sebastian Dröge 2013-05-30 12:57:11 +02:00
parent 667b856cbc
commit 5e63a0f674

View file

@ -1454,6 +1454,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
gst_buffer_map (outbuf, &map, GST_MAP_WRITE);
gst_audio_format_fill_silence (adder->info.finfo, map.data, outsize);
gst_buffer_unmap (outbuf, &map);
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_GAP);
} else {
/* assume EOS otherwise, this should not happen, really */
goto eos;