fix up newsegment

Original commit message from CVS:
fix up newsegment
parent 2e02b4f6
2005-09-16 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_sink_event):
fix up newsegment
2005-09-13 Thomas Vander Stichele <thomas at apestaart dot org> 2005-09-13 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/ffmpeg/gstffmpeg.c: (gst_ffmpeg_log_callback), (plugin_init): * ext/ffmpeg/gstffmpeg.c: (gst_ffmpeg_log_callback), (plugin_init):
......
common @ 39250a95
Subproject commit 30a1fc4dc24133cc411e0232af87790ae2f845b2 Subproject commit 39250a956e1dfc010fe9f9d93ca1e2c3a343cdca
...@@ -936,12 +936,16 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event) ...@@ -936,12 +936,16 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event)
} else if (ffmpegdec->context->bit_rate && fmt == GST_FORMAT_BYTES) { } else if (ffmpegdec->context->bit_rate && fmt == GST_FORMAT_BYTES) {
ffmpegdec->next_ts = start * GST_SECOND / ffmpegdec->context->bit_rate; ffmpegdec->next_ts = start * GST_SECOND / ffmpegdec->context->bit_rate;
GST_DEBUG_OBJECT (ffmpegdec, GST_DEBUG_OBJECT (ffmpegdec,
"Discont to byte %lld, time %" GST_TIME_FORMAT, "Newsegment in bytes from byte %" G_GINT64_FORMAT
start, GST_TIME_ARGS (ffmpegdec->next_ts)); " (time %" GST_TIME_FORMAT ") to byte % "G_GINT64_FORMAT
" (time %" GST_TIME_FORMAT ")",
start, GST_TIME_ARGS (ffmpegdec->next_ts),
end,
GST_TIME_ARGS (end * GST_SECOND / ffmpegdec->context->bit_rate));
gst_event_unref (event); gst_event_unref (event);
event = gst_event_new_newsegment (rate, fmt, event = gst_event_new_newsegment (rate, fmt,
start * GST_SECOND / ffmpegdec->context->bit_rate, start * GST_SECOND / ffmpegdec->context->bit_rate,
end * GST_SECOND / ffmpegdec->context->bit_rate, end == -1 ? -1 : end * GST_SECOND / ffmpegdec->context->bit_rate,
base * GST_SECOND / ffmpegdec->context->bit_rate); base * GST_SECOND / ffmpegdec->context->bit_rate);
} else { } else {
GST_WARNING_OBJECT (ffmpegdec, GST_WARNING_OBJECT (ffmpegdec,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment