ext/ffmpeg/gstffmpegdemux.c: timestamp is a GstClockTime, not a double..

Original commit message from CVS:
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_loop):
timestamp is a GstClockTime, not a double..
fix #309149 and maybe others bug
This commit is contained in:
Luca Ognibene 2005-06-27 21:51:37 +00:00
parent 26d61e741b
commit beb616773d
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-06-27 Luca Ognibene <luogni@tin.it>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_loop):
timestamp is a GstClockTime, not a double..
fix #309149 and maybe others bug
2005-06-27 Daniel Fischer <dan@f3c.com>
reviewed by: Luca Ognibene <luogni@tin.it>

View file

@ -656,7 +656,7 @@ gst_ffmpegdemux_loop (GstElement * element)
GST_BUFFER_SIZE (outbuf) = pkt.size;
if (pkt.pts != AV_NOPTS_VALUE) {
GST_BUFFER_TIMESTAMP (outbuf) = (gdouble) (pkt.pts +
GST_BUFFER_TIMESTAMP (outbuf) = (GstClockTime) (pkt.pts +
stream->start_time) * GST_SECOND / AV_TIME_BASE;
demux->last_ts[stream->index] = GST_BUFFER_TIMESTAMP (outbuf);
}