+
+/**
+ * Spawns a new decoder thread from the input thread
+ *
+ * \param p_input the input thread
+ * \param p_es the es descriptor
+ * \return the spawned decoder object
+ */
+decoder_t *input_DecoderNew( input_thread_t *p_input,
+ es_format_t *fmt, input_clock_t *p_clock,
+ sout_instance_t *p_sout )
+{
+ return decoder_New( VLC_OBJECT(p_input), p_input, fmt, p_clock,
+ p_input->p->p_resource, p_sout );
+}
+
+/**
+ * Spawn a decoder thread outside of the input thread.
+ */
+decoder_t *input_DecoderCreate( vlc_object_t *p_parent, es_format_t *fmt,
+ input_resource_t *p_resource )
+{
+ return decoder_New( p_parent, NULL, fmt, NULL, p_resource, NULL );
+}
+
+