Hi,

I have a debian testing and whenever i want to see some Disneys DVD i have to use xbmc since vlc exits. I pinned libdvdnav4 to get lastest unstable, but now instead of exiting , it just stops and wait indefinitely.

So i took debian dsc and rebuild it with the next changeset i found in http://git.videolan.org/git/libdvdnav.git that fix thread unlocking. you integrated this one : 2d73a2b3c6ccd3d45be194d482cfb09f8e5055e2 Return an error in dvdnav_get_position instead of asserting
but next one is needed :
e225924870be20b03aa5e05b8bd1f524499fe722 dvdnav_get_position: Fix mutex unlocking in case of error

so i patched with :

on specific dvdnav_get_position error release lock to not stay locked forever.
--- a/src/searching.c
+++ b/src/searching.c
@@ -563,11 +563,11 @@
     *len += cell->last_sector - cell->first_sector + 1;
   }

+  pthread_mutex_unlock(&this->vm_lock);
+
   if((signed)*pos == -1)
     return DVDNAV_STATUS_ERR;

-  pthread_mutex_unlock(&this->vm_lock);
-
   return DVDNAV_STATUS_OK;
 }


and now my indestructible dvd does play fine ( some error on console when hitting scene changes causings previous crash , hang, but it basically works ).

Regards,
Philippe Lhardy



_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to