mp3 plugin error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
> 

--------------------------------------------------
AMMEC - Accessible Multimedia Entertainment Center 

http://www.ammec.de
Email: Marco Skambraks <marco@xxxxxxxx>


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux