[vlc-commits] decoder: make the get_device callback mandatory
Steve Lhomme
git at videolan.org
Mon Dec 9 11:51:11 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 9 10:09:35 2019 +0200| [607baf4fe98484bfb183010e8c3a74a931b32c7e] | committer: Steve Lhomme
decoder: make the get_device callback mandatory
Even if it gives a NULL decoder device at least we tried.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=607baf4fe98484bfb183010e8c3a74a931b32c7e
---
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 bfff72d6db..2ea6c1f8ed 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 );
}
More information about the vlc-commits
mailing list