]> git.sesse.net Git - vlc/blobdiff - src/input/decoder.h
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / input / decoder.h
index 9846d94e74343b763188237ac04d6fbeab63a400..b113d22fcde4bea0370643a223e6eab478564d4d 100644 (file)
@@ -90,11 +90,25 @@ 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.
+ * This function will return true if the ES format or meta data have changed since
+ * the last call. In which case, it will do a copy of the current es_format_t if p_fmt
+ * is not NULL and will do a copy of the current description if pp_meta is non NULL.
+ * The es_format_t MUST be freed by es_format_Clean and *pp_meta MUST be freed by
+ * vlc_meta_Delete.
+ * Otherwise it will return false and will not initialize p_fmt and *pp_meta.
  */
-bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt );
+bool input_DecoderHasFormatChanged( decoder_t *p_dec, es_format_t *p_fmt, vlc_meta_t **pp_meta );
+
+/**
+ * This function returns the current size in bytes of the decoder fifo
+ */
+size_t input_DecoderGetFifoSize( decoder_t *p_dec );
+
+/**
+ * This function returns the objects associated to a decoder
+ *
+ * They must be released using vlc_object_release().
+ */
+void input_DecoderGetObjects( decoder_t *, vout_thread_t **, aout_instance_t ** );
 
 #endif