Commit 7c3dd2e6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlc_media_new_(location|path): try to clarify the difference

(cherry picked from commit a67fbfcd732babd4d5acc2f5c71898a43e43bcd9)
parent 828dc015
...@@ -171,12 +171,18 @@ typedef struct libvlc_media_track_info_t ...@@ -171,12 +171,18 @@ typedef struct libvlc_media_track_info_t
/** /**
* Create a media with a certain given media resource location. * Create a media with a certain given media resource location,
* for instance a valid URL.
*
* \note To refer to a local file with this function,
* the file://... URI syntax <b>must</b> be used (see IETF RFC3986).
* We recommend using libvlc_media_new_path() instead when dealing with
* local files.
* *
* \see libvlc_media_release * \see libvlc_media_release
* *
* \param p_instance the instance * \param p_instance the instance
* \param psz_mrl the MRL to read * \param psz_mrl the media location
* \return the newly created media or NULL on error * \return the newly created media or NULL on error
*/ */
VLC_PUBLIC_API libvlc_media_t *libvlc_media_new_location( VLC_PUBLIC_API libvlc_media_t *libvlc_media_new_location(
...@@ -184,7 +190,7 @@ VLC_PUBLIC_API libvlc_media_t *libvlc_media_new_location( ...@@ -184,7 +190,7 @@ VLC_PUBLIC_API libvlc_media_t *libvlc_media_new_location(
const char * psz_mrl ); const char * psz_mrl );
/** /**
* Create a media with a certain file path. * Create a media for a certain file path.
* *
* \see libvlc_media_release * \see libvlc_media_release
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment