Adam Nielsen <a.niel...@shikadi.net> writes:

> Hi all,
>
> I'm working on an input plugin for XMMS2 to allow playback of AdPlug
> supported files, and it's pretty much working except for one thing.
>
> AdPlug supports a whole bunch of different files, and for a lot of
> them it uses the file extension to figure out which format a song is.
> This means I need to pass it a filename, even though it never tries to
> open that file.
>
> However I can't see how to retrieve the filename of the file I'm
> trying to play.  I thought getting the URL from the medialib might
> yield a file:// URL for local files (which would be fine, all AdPlug
> needs is the extension) but it seems the URL field is blank for local
> files.

Are you calling xmms_xform_get_url?

>
> Is there any other way I can get hold of the filename?  The only other
> workaround I can think of is to get the MIME type and create a dummy
> filename with the appropriate extension.
>
> Thanks,
> Adam.
>
> --
> _______________________________________________
> Xmms2-devel mailing list
> Xmms2-devel@lists.xmms.se
> http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel
>

-- 
Please don't send me Word, Access, PowerPoint, or Excel attachments.
Ask for my public key. No sensitive data en clair.
9467 6082 8A35 2E1E 2D6B  76C4 5E9A ED56 076F 9E89

Attachment: pgpz7MM1LgVE8.pgp
Description: PGP signature

--
_______________________________________________
Xmms2-devel mailing list
Xmms2-devel@lists.xmms.se
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to