Ok, i know now, why it doesn't work.

For explanation in short words again i like to (more detailed in mantis:
http://musicpd.org/mantis/view.php?id=3134 )
Realize different modes (default, radio, audio cd, recordings) called by
a playlist with associated name. Why?: Simply and fast change between
different audio sources.


So i compare in the function playlist_open_into_queue (src-file:
playlist_queue.c) if a playlist named for example "Radio" is called.
For exact defining of the modes i introduced the variable mode
(playlist->queue.mode). I set the mode variable depending on called
playlist. This is working so far.

The problem is, when a mpd-client is calling one of the above modes, the
actual queue is cleared in function handle_clear (src-file: command.c)
and so i cant save the queue in the later called function
playlist_open_into_queue because its already cleared. 
So i would need in function handle_clear(*1) already to know if a mode
playlist is called to save it before clearing the queue. 
This way seems not to work without bigger changes. My knowledge about
the mpd architecture is limited, so i dont know if there is a easier way
for implementation?


(*1)
handle_clear(G_GNUC_UNUSED struct client *client,
             G_GNUC_UNUSED int argc, G_GNUC_UNUSED char *argv[])


Am Freitag, den 25.03.2011, 09:26 +0100 schrieb Max Kellermann:
> On 2011/03/24 19:30, Markus Schuster <fuch...@freenet.de> wrote:
> > i took a look into save_playlist.h and i tried two different types. But
> > both didnt work. Could you give me another hint.
> 
> I am unable give you hints if all you gave me is "didnt work".



------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to