[vdr] mp3 plugin error
Marco Skambraks
marco at ammec.de
Fri Jan 26 11:01:39 CET 2007
hi,
On Thu, 25 Jan 2007, Halim Sahin wrote:
> Hi,
>
> Try the folowing steps to reproducee the error:
> Add an mp3-directory to your mp3sources.conf.
> The mp3 dir must have subdirectories!!!
> Start the plugin and change into a subdirectory.
> Now close the plugin.
> Remove only the subdirectory of the mp3-dir.
> Now start the plugin.
>
> The plugin remembers the last played directory but does not check if the
> dir is
> available before loading it.
>
> A fix can be possible in LoadDir function????
I made a dirty hack and it looks OK but not very fast and not nice
menu.c - LoadDir line 141:
bool res=list->Load(source,dir,excl);
+ if(!res)
+ {
+ parent=currentdir=NULL;
+ source->SetRemember(NULL,NULL);
+ res=list->Load(source,NULL,excl);
+ }
if(res) {
cFileObj *item=list->First();
...
maybe, the plugin developers can find a better way to solve this problem
marco
>
> Halim
>
>
> _______________________________________________
> vdr mailing list
> vdr at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
--------------------------------------------------
AMMEC - Accessible Multimedia Entertainment Center
http://www.ammec.de
Email: Marco Skambraks <marco at ammec.de>
More information about the vdr
mailing list