mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +00:00
ext/jpeg/gstjpegdec.c: Actually drop the buffers which are outside the currently configured segment instead of just e...
Original commit message from CVS: * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain): Actually drop the buffers which are outside the currently configured segment instead of just emitting a WARNING.
This commit is contained in:
parent
981460c22b
commit
badcd298cc
3 changed files with 16 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-12-17 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||||
|
|
||||||
|
* ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_chain):
|
||||||
|
Actually drop the buffers which are outside the currently configured
|
||||||
|
segment instead of just emitting a WARNING.
|
||||||
|
|
||||||
2007-12-14 Wim Taymans <wim.taymans@collabora.co.uk>
|
2007-12-14 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* ext/flac/gstflacdec.c: (gst_flac_dec_metadata_callback),
|
* ext/flac/gstflacdec.c: (gst_flac_dec_metadata_callback),
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit ea5f2cfab1a164a5d285fe745343cbe0a476a904
|
Subproject commit a00d4c1966aab517c2694c61d580489ebcbce448
|
|
@ -993,9 +993,8 @@ gst_jpeg_dec_chain (GstPad * pad, GstBuffer * buf)
|
||||||
GST_TIME_ARGS (clip_stop - clip_start));
|
GST_TIME_ARGS (clip_stop - clip_start));
|
||||||
GST_BUFFER_DURATION (outbuf) = clip_stop - clip_start;
|
GST_BUFFER_DURATION (outbuf) = clip_stop - clip_start;
|
||||||
}
|
}
|
||||||
} else {
|
} else
|
||||||
GST_WARNING_OBJECT (dec, "Outgoing buffer is outside configured segment");
|
goto drop_buffer;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_LOG_OBJECT (dec, "pushing buffer (ts=%" GST_TIME_FORMAT ", dur=%"
|
GST_LOG_OBJECT (dec, "pushing buffer (ts=%" GST_TIME_FORMAT ", dur=%"
|
||||||
|
@ -1061,6 +1060,13 @@ alloc_failed:
|
||||||
}
|
}
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
drop_buffer:
|
||||||
|
{
|
||||||
|
GST_WARNING_OBJECT (dec, "Outgoing buffer is outside configured segment");
|
||||||
|
gst_buffer_unref (outbuf);
|
||||||
|
ret = GST_FLOW_OK;
|
||||||
|
goto exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue