diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-01-19 15:39:45 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-01-19 15:39:45 +0000 |
commit | c7fcd9d5ae4f4ef2ea1a50542fa7ca93673cde8a (patch) | |
tree | e157d1b43aaae1c50e7686e41311fdf511ef7702 | |
parent | ec7388ffa35029c84bbfb31b52abdfc27e7758f8 (diff) | |
download | gst-plugins-bad-c7fcd9d5ae4f4ef2ea1a50542fa7ca93673cde8a.tar.gz gst-plugins-bad-c7fcd9d5ae4f4ef2ea1a50542fa7ca93673cde8a.tar.bz2 gst-plugins-bad-c7fcd9d5ae4f4ef2ea1a50542fa7ca93673cde8a.zip |
gst/rawparse/gstrawparse.c: Improve debugging a bit and for handling multiple frames per buffer in pull mode choose t...
Original commit message from CVS:
* gst/rawparse/gstrawparse.c: (gst_raw_parse_loop),
(gst_raw_parse_handle_seek_push):
Improve debugging a bit and for handling multiple frames per buffer
in pull mode choose the next smallest multiply of framesize below
4096 instead of always handling 1024 frames.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gst/rawparse/gstrawparse.c | 7 |
2 files changed, 14 insertions, 1 deletions
@@ -1,5 +1,13 @@ 2008-01-19 Sebastian Dröge <slomo@circular-chaos.org> + * gst/rawparse/gstrawparse.c: (gst_raw_parse_loop), + (gst_raw_parse_handle_seek_push): + Improve debugging a bit and for handling multiple frames per buffer + in pull mode choose the next smallest multiply of framesize below + 4096 instead of always handling 1024 frames. + +2008-01-19 Sebastian Dröge <slomo@circular-chaos.org> + Patch by: Wouter Cloetens <wouter at mind dot be> * ext/soup/gstsouphttpsrc.c: (soup_got_headers): diff --git a/gst/rawparse/gstrawparse.c b/gst/rawparse/gstrawparse.c index 840d056a..16a6b9f7 100644 --- a/gst/rawparse/gstrawparse.c +++ b/gst/rawparse/gstrawparse.c @@ -297,7 +297,7 @@ gst_raw_parse_loop (GstElement * element) } if (rp_class->multiple_frames_per_buffer) - size = 1024 * rp->framesize; + size = 4096 - (4096 % rp->framesize); else size = rp->framesize; @@ -651,7 +651,12 @@ gst_raw_parse_handle_seek_push (GstRawParse * rp, GstEvent * event) start, stop_type, stop); ret = gst_pad_push_event (rp->sinkpad, event); + } else { + GST_DEBUG_OBJECT (rp, "Seek failed: couldn't convert to byte positions"); } + } else { + GST_DEBUG_OBJECT (rp, + "seeking is only supported in TIME or DEFAULT format"); } return ret; } |