[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Music Player Daemon (MPD) 2009-10-01 Re-Release
04-01-2010, 10:19 PM
Post: #279
RE: Music Player Daemon (MPD) 2009-10-01 Re-Release
Hi SamDron, the patch is outdated right now, but to be honest, it's easier to just manually apply the changes yourself. Just open the patch file with your favourite text editor and start editing the files. It probably won't work, but you could always give this a try:
http://www.daedalusdevelopment.net/stuff/mpdpatch.patch (which is a unified diff in SVN with the paths changed.)

Other than that:
  • Added include files:
    Code:
    #include <dlfcn.h>
  • Added define:
    Code:
    #define AUDIO_OUTPUT_LOAD    "load"

Then further down in
Code:
audio_output_init(...)
:
Replace the following blob:
Code:
        plugin = audio_output_plugin_get(type);
        if (plugin == NULL) {
            g_set_error(error, audio_output_quark(), 0,
                    "No such audio output plugin: %s",
                    type);
            return false;
        }
with:
Code:
        load = config_get_block_string(param, AUDIO_OUTPUT_LOAD, NULL);
        if (load == NULL) {
            plugin = audio_output_plugin_get(type);
            if (plugin == NULL) {
                g_set_error(error, audio_output_quark(), 0,
                        "No such audio output plugin: %s", type);
                return false;
            }
        }
        else {
            void *so_handle;

            if ((so_handle = dlopen(load, RTLD_NOW|RTLD_GLOBAL)))
                plugin = dlsym(so_handle, type);

            if (plugin == NULL) {
                g_set_error(error, audio_output_quark(), 0,
                        "Unable to load audio output plugin: %s", load);
                return false;
            }
        }
Find all posts by this user
Thread Closed 


Messages In This Thread
RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - shadowcode - 04-01-2010 10:19 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Rainbow Music Player Daemon (MPD) - v0.16.2 shadowcode 120 36,069 05-10-2013 08:42 AM
Last Post: Djiest
  Music Browser for NMT - Updated August, 2nd, 2011 gkreidl 14 8,075 01-19-2013 04:07 PM
Last Post: winfried_laane
  Is it possible to code a HULU player for the A-110? mulderfox 0 378 01-05-2013 11:11 AM
Last Post: mulderfox
Music MPD installation howto (updated 4 May 2009) gwillem 494 286,334 07-20-2012 09:43 PM
Last Post: krimpenrik
  Any music jukebox that syncs with itunes? superflysocal 0 870 07-04-2012 02:57 PM
Last Post: superflysocal
  Music Player Daemon (MPD) 2010-04-04 v0.15.9 shadowcode 245 85,107 03-10-2012 01:05 AM
Last Post: ianny
Music fuppes 0.629 for NMT - dlna, upnp media server [UPDATED: 31-May-2009] Mr Segfault 53 45,354 10-12-2011 01:04 AM
Last Post: spud
  Stream music to the popcornhour snakeboots 1 2,354 08-30-2011 02:56 PM
Last Post: minio
  Music player minion connection problems webkocken 5 3,679 07-04-2011 09:08 AM
Last Post: shadowcode
  Disable amule daemon drunkendonkey 0 1,450 02-04-2011 12:33 AM
Last Post: drunkendonkey

Forum Jump: