oggdemux: Don't arbitrarily guess a timestamp of 0
authorJan Schmidt <jan@centricular.com>
Fri, 3 Mar 2017 13:15:50 +0000 (00:15 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 3 Mar 2017 13:30:37 +0000 (00:30 +1100)
When we haven't managed to manufacture a timestamp for
a packet, don't just guess '0', leave it at none and
let downstream decide

ext/ogg/gstoggdemux.c

index 03ac00f..bc10813 100644 (file)
@@ -723,7 +723,7 @@ gst_ogg_demux_chain_peer (GstOggPad * pad, ogg_packet * packet,
             out_timestamp = gst_ogg_stream_granule_to_time (&pad->map,
                 pad->prev_granule);
           else
-            out_timestamp = 0;
+            out_timestamp = GST_CLOCK_TIME_NONE;
 
           if (pad->map.audio_clipping
               && pad->current_granule < pad->prev_granule + duration) {