mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
fix up newsegment
Original commit message from CVS: fix up newsegment
This commit is contained in:
parent
2e02b4f6f5
commit
fa992c26d6
3 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* ext/ffmpeg/gstffmpeg.c: (gst_ffmpeg_log_callback), (plugin_init):
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 30a1fc4dc24133cc411e0232af87790ae2f845b2
|
||||
Subproject commit 39250a956e1dfc010fe9f9d93ca1e2c3a343cdca
|
|
@ -936,12 +936,16 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event)
|
|||
} else if (ffmpegdec->context->bit_rate && fmt == GST_FORMAT_BYTES) {
|
||||
ffmpegdec->next_ts = start * GST_SECOND / ffmpegdec->context->bit_rate;
|
||||
GST_DEBUG_OBJECT (ffmpegdec,
|
||||
"Discont to byte %lld, time %" GST_TIME_FORMAT,
|
||||
start, GST_TIME_ARGS (ffmpegdec->next_ts));
|
||||
"Newsegment in bytes from byte %" G_GINT64_FORMAT
|
||||
" (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);
|
||||
event = gst_event_new_newsegment (rate, fmt,
|
||||
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);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (ffmpegdec,
|
||||
|
|
Loading…
Reference in a new issue