projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54b317e
)
x265enc: remove dead code
author
Luis de Bethencourt
<luis@debethencourt.com>
Wed, 5 Aug 2015 10:14:49 +0000
(11:14 +0100)
committer
Luis de Bethencourt
<luis@debethencourt.com>
Wed, 5 Aug 2015 10:14:51 +0000
(11:14 +0100)
level_ok is only used in a check that will never be true, removing it.
CID #1315255
ext/x265/gstx265enc.c
patch
|
blob
|
history
diff --git
a/ext/x265/gstx265enc.c
b/ext/x265/gstx265enc.c
index
18577d0
..
be516a2
100644
(file)
--- a/
ext/x265/gstx265enc.c
+++ b/
ext/x265/gstx265enc.c
@@
-894,7
+894,6
@@
gst_x265_enc_set_format (GstVideoEncoder * video_enc,
{
GstX265Enc *encoder = GST_X265_ENC (video_enc);
GstVideoInfo *info = &state->info;
- gboolean level_ok = TRUE;
/* If the encoder is initialized, do not reinitialize it again if not
* necessary */
@@
-918,9
+917,6
@@
gst_x265_enc_set_format (GstVideoEncoder * video_enc,
gst_video_codec_state_unref (encoder->input_state);
encoder->input_state = gst_video_codec_state_ref (state);
- if (!level_ok)
- return FALSE;
-
if (!gst_x265_enc_init_encoder (encoder))
return FALSE;