mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
basesrc: Move variable and assignment to where it's needed
This commit is contained in:
parent
7f8be6935a
commit
dc304041ed
1 changed files with 1 additions and 4 deletions
|
@ -3007,9 +3007,6 @@ gst_base_src_start_complete (GstBaseSrc * basesrc, GstFlowReturn ret)
|
|||
GstFormat format;
|
||||
GstPadMode mode;
|
||||
GstEvent *event;
|
||||
GstBaseSrcClass *bclass;
|
||||
|
||||
bclass = GST_BASE_SRC_GET_CLASS (basesrc);
|
||||
|
||||
if (ret != GST_FLOW_OK)
|
||||
goto error;
|
||||
|
@ -3021,7 +3018,7 @@ gst_base_src_start_complete (GstBaseSrc * basesrc, GstFlowReturn ret)
|
|||
have_size = FALSE;
|
||||
size = -1;
|
||||
if (format == GST_FORMAT_BYTES) {
|
||||
bclass = GST_BASE_SRC_GET_CLASS (basesrc);
|
||||
GstBaseSrcClass *bclass = GST_BASE_SRC_GET_CLASS (basesrc);
|
||||
|
||||
if (bclass->get_size) {
|
||||
if (!(have_size = bclass->get_size (basesrc, &size)))
|
||||
|
|
Loading…
Reference in a new issue