summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/rawparse/gstrawparse.c7
1 files changed, 6 insertions, 1 deletions
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;
}