* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#include "libvlc_internal.h"
#include <vlc/libvlc.h>
#include <vlc_demux.h>
#include <vlc_input.h>
#include "input/input_internal.h"
+#include "libvlc_internal.h"
/*
* Release the associated input thread
if( !p_mi )
return NULL;
- p_mi->p_md = libvlc_media_descriptor_duplicate( p_md );
+ libvlc_media_descriptor_retain( p_md );
+ p_mi->p_md = p_md;
return p_mi;
}
return; /* It is ok to pass a NULL md */
}
- p_mi->p_md = libvlc_media_descriptor_duplicate( p_md );
+ libvlc_media_descriptor_retain( p_md );
+ p_mi->p_md = p_md;
/* The policy here is to ignore that we were created using a different
* libvlc_instance, because we don't really care */
if( !p_mi->p_md )
return NULL;
- return libvlc_media_descriptor_duplicate( p_mi->p_md );
+ libvlc_media_descriptor_retain( p_mi->p_md );
+ return p_mi->p_md;
}
/**************************************************************************