projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8be69
)
basesrc: Move variable and assignment to where it's needed
author
Edward Hervey
<edward@collabora.com>
Fri, 17 Feb 2012 23:09:56 +0000
(15:09 -0800)
committer
Edward Hervey
<edward@collabora.com>
Fri, 17 Feb 2012 23:11:38 +0000
(15:11 -0800)
libs/gst/base/gstbasesrc.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstbasesrc.c
b/libs/gst/base/gstbasesrc.c
index
b47a4fb
..
02f96ac
100644
(file)
--- a/
libs/gst/base/gstbasesrc.c
+++ b/
libs/gst/base/gstbasesrc.c
@@
-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)))