Browse Source

decoder: make the get_device callback mandatory

Even if it gives a NULL decoder device at least we tried.
pull/100/head
Steve Lhomme 7 years ago
parent
commit
607baf4fe9
  1. 4
      include/vlc_codec.h

4
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 );
}

Loading…
Cancel
Save