diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index 12575b9678..46a58237dc 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -209,6 +209,8 @@ gst_file_src_init (GstFileSrc * src) src->uri = NULL; src->is_regular = FALSE; + + gst_base_src_set_blocksize (GST_BASE_SRC (src), DEFAULT_BLOCKSIZE); } static void diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index c3fd981b16..c86113d147 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -2609,12 +2609,6 @@ gst_queue2_handle_src_event (GstPad * pad, GstObject * parent, GstEvent * event) /* now unblock the getrange function */ GST_QUEUE2_MUTEX_LOCK (queue); queue->srcresult = GST_FLOW_OK; - if (queue->current) { - /* forget the highest read offset, we'll calculate a new one when we - * get the next getrange request. We need to do this in order to reset - * the buffering percentage */ - queue->current->max_reading_pos = 0; - } GST_QUEUE2_MUTEX_UNLOCK (queue); /* when using a temp file, we eat the event */