mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
gst/rawparse/gstrawparse.c: Always seek on frame boundaries, will produce nothing useful otherwise.
Original commit message from CVS: * gst/rawparse/gstrawparse.c: (gst_raw_parse_src_event): Always seek on frame boundaries, will produce nothing useful otherwise.
This commit is contained in:
parent
96690aa992
commit
086c50363a
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-12-23 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* gst/rawparse/gstrawparse.c: (gst_raw_parse_src_event):
|
||||||
|
Always seek on frame boundaries, will produce nothing useful
|
||||||
|
otherwise.
|
||||||
|
|
||||||
2007-12-23 Sebastian Dröge <slomo@circular-chaos.org>
|
2007-12-23 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -440,6 +440,11 @@ gst_raw_parse_src_event (GstPad * pad, GstEvent * event)
|
||||||
gst_raw_parse_convert (rp, format, stop, GST_FORMAT_BYTES, &stop);
|
gst_raw_parse_convert (rp, format, stop, GST_FORMAT_BYTES, &stop);
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
/* Seek on a frame boundary */
|
||||||
|
start -= start % rp->framesize;
|
||||||
|
if (stop != -1)
|
||||||
|
stop += rp->framesize - stop % rp->framesize;
|
||||||
|
|
||||||
event =
|
event =
|
||||||
gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, start_type,
|
gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, start_type,
|
||||||
start, stop_type, stop);
|
start, stop_type, stop);
|
||||||
|
|
Loading…
Reference in a new issue