# HG changeset patch # User mroi # Date 1032359202 0 # Node ID c5e47a98c8833830b937df8234e71b979542e7c5 # Parent 457f35f43ba641c913e7f6ab0c58ed0c577ea4ab fix possible unlock on not locked mutex diff -r 457f35f43ba6 -r c5e47a98c883 dvdnav.c --- a/dvdnav.c Wed Sep 18 04:21:45 2002 +0000 +++ b/dvdnav.c Wed Sep 18 14:26:42 2002 +0000 @@ -597,13 +597,13 @@ fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE stream_id_letterbox=%d\n",stream_change.physical_letterbox); fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE stream_id_pan_scan=%d\n",stream_change.physical_pan_scan); #endif - pthread_mutex_unlock(&this->vm_lock); if (stream_change.physical_wide != -1 && stream_change.physical_letterbox != -1 && stream_change.physical_pan_scan != -1) { #ifdef LOG_DEBUG fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE returning S_OK\n"); #endif + pthread_mutex_unlock(&this->vm_lock); return S_OK; } } @@ -1010,6 +1010,9 @@ /* * $Log$ + * Revision 1.37 2002/09/18 14:26:42 mroi + * fix possible unlock on not locked mutex + * * Revision 1.36 2002/09/17 11:00:21 jcdutton * First patch for personalized dvd viewing. I have not tested it yet. *