qtdemux: convert some more mov format timestamp to gst time
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 8 Jul 2010 14:07:16 +0000 (16:07 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 16 Jul 2010 11:58:21 +0000 (13:58 +0200)
gst/qtdemux/qtdemux.c

index 979497d4b518246abd926918db0e0d87b6aed86e..fea3385885f72998b61daf3185eeb35e94030f86 100644 (file)
@@ -1988,6 +1988,10 @@ gst_qtdemux_seek_to_previous_keyframe (GstQTDemux * qtdemux)
     }
     ref_str->segment_index--;
     seg = &ref_str->segments[ref_str->segment_index];
+    /* convert seg->media_start to mov format time for timestamp comparison */
+    seg_media_start_mov =
+        gst_util_uint64_scale (seg->media_start, ref_str->timescale,
+        GST_SECOND);
   }
   /* Calculate time position of the keyframe and where we should stop */
   k_pos =