]> git.sesse.net Git - vlc/blobdiff - src/input/decoder.h
Fixed vout reuse regression.
[vlc] / src / input / decoder.h
index 454ffaf8129167c5aa15f8ff75e4ba5a9877f9bd..b113d22fcde4bea0370643a223e6eab478564d4d 100644 (file)
@@ -89,4 +89,26 @@ 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 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, 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