<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 05.09.2012 12:24, Mark Lee wrote:<br>
</div>
<blockquote
cite="mid:CADVdi8pJicXH=2S2eTqFMY6af9yU-vDYu3G9YaBkRLvABgoUoA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hello,<br>
<br>
Rather than maintaining my own possibly out of date copies of vlc
supported file extensions, I would like to get them via libvlc
instead. The use case is the same as for the file open dialog in
the vlc application.<br>
<br>
Presently these are defined like follows (truncated here for
brevity) in vlc_interface.h:<br clear="all">
<br>
#define EXTENSIONS_AUDIO "*.3ga;*.669;*.a52;"<br>
#define EXTENSIONS_VIDEO
"*.3g2;*.3gp;*.3gp2;*.3gpp;*.amv;*.asf;*.avi;"<br>
<div id=":17f">
#define EXTENSIONS_PLAYLIST
"*.asx;*.b4s;*.cue;*.ifo;*.m3u;*.m3u8;"<br>
#define EXTENSIONS_MEDIA EXTENSIONS_VIDEO ";" EXTENSIONS_AUDIO
";" EXTENSIONS_PLAYLIST<br>
#define EXTENSIONS_SUBTITLE "*.cdg;*.idx;*.srt;" <br>
</div>
</blockquote>
<br>
The list seems incomplete. At least "*.mkv" is missing... any
others?<br>
<br>
(And if "*.cue" counts as a playlist, should "*.iso" count, too?)<br>
<br>
-J<br>
<br>
<br>
<blockquote
cite="mid:CADVdi8pJicXH=2S2eTqFMY6af9yU-vDYu3G9YaBkRLvABgoUoA@mail.gmail.com"
type="cite">
<div id=":17f">
<br>
So, in principle is this something more generally useful to
include in libvlc?<br>
<br>
If so I will work on a patch to add it, but would first like
some pointers on what the API should look like for it to be
acceptable.<br>
<br>
The simplest approach is to have some static storage for those
defined strings and return them verbatim. Or, should they be
tokenised from these defines and returned in a string array, or
some sort of list structure? <br>
<br>
Would it be preferable to have one API method for each type
(audio, video, playlist etc), or a single method that takes a
type parameter? <br>
<br>
Or something else?<br>
<br>
Thanks.</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a class="moz-txt-link-freetext" href="http://mailman.videolan.org/listinfo/vlc-devel">http://mailman.videolan.org/listinfo/vlc-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>