]> git.sesse.net Git - vlc/blobdiff - src/input/decoder.h
Updated codec informations on decoder output change.
[vlc] / src / input / decoder.h
index 454ffaf8129167c5aa15f8ff75e4ba5a9877f9bd..9846d94e74343b763188237ac04d6fbeab63a400 100644 (file)
@@ -89,4 +89,12 @@ void input_DecoderIsCcPresent( decoder_t *, bool pb_present[4] );
  */
 void input_DecoderFrameNext( decoder_t *p_dec, mtime_t *pi_duration );
 
+/**
+ * This function will return true if the ES format has changed since the last call
+ * and will do a copy of the current es_format_t if p_fmt is not NULL. This copy
+ * MUST be free by es_format_Clean.
+ * Otherwise it will return false and will not initialize p_fmt.
+ */
+bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt );
+
 #endif