projects
/
platform
/
upstream
/
gst-omx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
964cb54
)
omxaudioenc: impossible if statement
author
Luis de Bethencourt
<luis.bg@samsung.com>
Fri, 6 Mar 2015 10:57:53 +0000
(10:57 +0000)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Fri, 6 Mar 2015 10:57:53 +0000
(10:57 +0000)
ret is set to GST_STATE_CHANGE_SUCCESS and never touched, so it is impossible
for it to be anything else at the if check. Remove the if check.
CID #1287053
omx/gstomxaudioenc.c
patch
|
blob
|
history
diff --git
a/omx/gstomxaudioenc.c
b/omx/gstomxaudioenc.c
index
2d7332c
..
8724f5e
100644
(file)
--- a/
omx/gstomxaudioenc.c
+++ b/
omx/gstomxaudioenc.c
@@
-245,9
+245,6
@@
gst_omx_audio_enc_change_state (GstElement * element, GstStateChange transition)
break;
}
- if (ret == GST_STATE_CHANGE_FAILURE)
- return ret;
-
ret =
GST_ELEMENT_CLASS (gst_omx_audio_enc_parent_class)->change_state (element,
transition);