[vlc-devel] [PATCH 10/12] decoder: make the get_device callback mandatory
Steve Lhomme
robux4 at ycbcr.xyz
Mon Dec 2 14:26:17 CET 2019
Even if it gives a NULL decoder device at least we tried.
---
include/vlc_codec.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include/vlc_codec.h b/include/vlc_codec.h
index e73ad16f393..fe23bf82106 100644
--- a/include/vlc_codec.h
+++ b/include/vlc_codec.h
@@ -279,9 +279,7 @@ static inline vlc_decoder_device * decoder_GetDecoderDevice( decoder_t *dec )
if ( unlikely(dec->fmt_in.i_cat != VIDEO_ES || dec->cbs == NULL ) )
return NULL;
- if ( dec->cbs->video.get_device == NULL )
- return NULL; /* TODO make it mandatory for all decoder owners */
-
+ vlc_assert(dec->cbs->video.get_device != NULL);
return dec->cbs->video.get_device( dec );
}
--
2.17.1
More information about the vlc-devel
mailing list