[vlc-commits] codec: gstreamer: fix CloseDecoder() return

Tristan Matthews git at videolan.org
Sun Feb 19 06:59:34 CET 2017


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Sun Feb 19 00:52:11 2017 -0500| [708e058bd0da5e420b5b85b1d156606e02731e48] | committer: Tristan Matthews

codec: gstreamer: fix CloseDecoder() return

Moreover, this error case does not seem to constitute a critical decoding
error.

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

 modules/codec/gstreamer/gstdecode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/gstreamer/gstdecode.c b/modules/codec/gstreamer/gstdecode.c
index e020cff..dbaddce 100644
--- a/modules/codec/gstreamer/gstdecode.c
+++ b/modules/codec/gstreamer/gstdecode.c
@@ -840,7 +840,7 @@ static void CloseDecoder( vlc_object_t *p_this )
                 if( default_msg_handler( p_dec, p_msg ) )
                 {
                     msg_Err( p_dec, "pipeline may not close gracefully" );
-                    return VLCDEC_ECRITICAL;
+                    return;
                 }
                 break;
             }



More information about the vlc-commits mailing list