mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/mpegaudioparse/gstmpegaudioparse.c: Revert previous commit to mp3parse, as it breaks playback of AVI files.
Original commit message from CVS: * gst/mpegaudioparse/gstmpegaudioparse.c: Revert previous commit to mp3parse, as it breaks playback of AVI files.
This commit is contained in:
parent
451f53d7de
commit
a739f67bc2
2 changed files with 13 additions and 19 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-02-17 Jan Schmidt <jan.schmidt@sun.com>
|
||||||
|
|
||||||
|
* gst/mpegaudioparse/gstmpegaudioparse.c:
|
||||||
|
|
||||||
|
Revert previous commit to mp3parse, as it breaks playback
|
||||||
|
of AVI files.
|
||||||
|
|
||||||
2008-02-14 Sebastian Dröge <slomo@circular-chaos.org>
|
2008-02-14 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* gst/mpegaudioparse/gstmpegaudioparse.c:
|
* gst/mpegaudioparse/gstmpegaudioparse.c:
|
||||||
|
|
|
@ -624,31 +624,18 @@ gst_mp3parse_emit_frame (GstMPEGAudioParse * mp3parse, guint size)
|
||||||
|
|
||||||
if (G_UNLIKELY ((GST_CLOCK_TIME_IS_VALID (push_start) &&
|
if (G_UNLIKELY ((GST_CLOCK_TIME_IS_VALID (push_start) &&
|
||||||
GST_BUFFER_TIMESTAMP (outbuf) + GST_BUFFER_DURATION (outbuf)
|
GST_BUFFER_TIMESTAMP (outbuf) + GST_BUFFER_DURATION (outbuf)
|
||||||
< push_start))) {
|
< push_start)
|
||||||
|
|| (GST_CLOCK_TIME_IS_VALID (mp3parse->segment.stop)
|
||||||
|
&& GST_BUFFER_TIMESTAMP (outbuf) >= mp3parse->segment.stop))) {
|
||||||
GST_DEBUG_OBJECT (mp3parse,
|
GST_DEBUG_OBJECT (mp3parse,
|
||||||
"Buffer before configured segment range %" GST_TIME_FORMAT
|
"Buffer outside of configured segment range %" GST_TIME_FORMAT
|
||||||
" to %" GST_TIME_FORMAT ", dropping, timestamp %"
|
" to %" GST_TIME_FORMAT ", dropping, timestamp %"
|
||||||
GST_TIME_FORMAT " duration %" GST_TIME_FORMAT
|
GST_TIME_FORMAT ", offset 0x%08" G_GINT64_MODIFIER "x",
|
||||||
", offset 0x%08" G_GINT64_MODIFIER "x", GST_TIME_ARGS (push_start),
|
GST_TIME_ARGS (push_start), GST_TIME_ARGS (mp3parse->segment.stop),
|
||||||
GST_TIME_ARGS (mp3parse->segment.stop),
|
|
||||||
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (outbuf)),
|
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (outbuf)),
|
||||||
GST_TIME_ARGS (GST_BUFFER_DURATION (outbuf)),
|
|
||||||
GST_BUFFER_OFFSET (outbuf));
|
GST_BUFFER_OFFSET (outbuf));
|
||||||
gst_buffer_unref (outbuf);
|
gst_buffer_unref (outbuf);
|
||||||
ret = GST_FLOW_OK;
|
ret = GST_FLOW_OK;
|
||||||
} else if (G_UNLIKELY (GST_CLOCK_TIME_IS_VALID (mp3parse->segment.stop)
|
|
||||||
&& GST_BUFFER_TIMESTAMP (outbuf) >= mp3parse->segment.stop)) {
|
|
||||||
GST_DEBUG_OBJECT (mp3parse,
|
|
||||||
"Buffer after configured segment range %" GST_TIME_FORMAT
|
|
||||||
" to %" GST_TIME_FORMAT ", returning GST_FLOW_UNEXPECTED, timestamp %"
|
|
||||||
GST_TIME_FORMAT " duration %" GST_TIME_FORMAT ", offset 0x%08"
|
|
||||||
G_GINT64_MODIFIER "x", GST_TIME_ARGS (push_start),
|
|
||||||
GST_TIME_ARGS (mp3parse->segment.stop),
|
|
||||||
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (outbuf)),
|
|
||||||
GST_TIME_ARGS (GST_BUFFER_DURATION (outbuf)),
|
|
||||||
GST_BUFFER_OFFSET (outbuf));
|
|
||||||
gst_buffer_unref (outbuf);
|
|
||||||
ret = GST_FLOW_UNEXPECTED;
|
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (mp3parse,
|
GST_DEBUG_OBJECT (mp3parse,
|
||||||
"pushing buffer of %d bytes, timestamp %" GST_TIME_FORMAT
|
"pushing buffer of %d bytes, timestamp %" GST_TIME_FORMAT
|
||||||
|
|
Loading…
Reference in a new issue