[vlc-commits] mmal: codec: remove the out label

Steve Lhomme git at videolan.org
Fri Jan 10 16:42:34 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jan 10 14:39:07 2020 +0100| [335b3feadf2f8e2e0ccad098287d45bf468d4bff] | committer: Steve Lhomme

mmal: codec: remove the out label

We just return -1 in all cases.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=335b3feadf2f8e2e0ccad098287d45bf468d4bff
---

 modules/hw/mmal/codec.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index dc3fc08b17..ed3cb96d68 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -305,8 +305,7 @@ static int change_output_format(decoder_t *dec)
     if (status != MMAL_SUCCESS) {
         msg_Err(dec, "Failed to disable output port (status=%"PRIx32" %s)",
                 status, mmal_status_to_string(status));
-        ret = -1;
-        goto out;
+        return -1;
     }
 
     mmal_format_full_copy(sys->output->format, sys->output_format);
@@ -314,8 +313,7 @@ static int change_output_format(decoder_t *dec)
     if (status != MMAL_SUCCESS) {
         msg_Err(dec, "Failed to commit output format (status=%"PRIx32" %s)",
                 status, mmal_status_to_string(status));
-        ret = -1;
-        goto out;
+        return -1;
     }
 
     if (sys->opaque) {
@@ -333,8 +331,7 @@ static int change_output_format(decoder_t *dec)
     if (status != MMAL_SUCCESS) {
         msg_Err(dec, "Failed to enable output port (status=%"PRIx32" %s)",
                 status, mmal_status_to_string(status));
-        ret = -1;
-        goto out;
+        return -1;
     }
 
     if (!atomic_load(&sys->started)) {
@@ -388,7 +385,6 @@ apply_fmt:
                 interlace_type.eMode);
     }
 
-out:
     return ret;
 }
 



More information about the vlc-commits mailing list