Mercurial > libdvdnav.hg
comparison dvdnav.c @ 99:c5e47a98c883 src
fix possible unlock on not locked mutex
author | mroi |
---|---|
date | Wed, 18 Sep 2002 14:26:42 +0000 |
parents | c1dff1899bda |
children | a767842bc447 |
comparison
equal
deleted
inserted
replaced
98:457f35f43ba6 | 99:c5e47a98c883 |
---|---|
595 #ifdef LOG_DEBUG | 595 #ifdef LOG_DEBUG |
596 fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE stream_id_wide=%d\n",stream_change.physical_wide); | 596 fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE stream_id_wide=%d\n",stream_change.physical_wide); |
597 fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE stream_id_letterbox=%d\n",stream_change.physical_letterbox); | 597 fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE stream_id_letterbox=%d\n",stream_change.physical_letterbox); |
598 fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE stream_id_pan_scan=%d\n",stream_change.physical_pan_scan); | 598 fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE stream_id_pan_scan=%d\n",stream_change.physical_pan_scan); |
599 #endif | 599 #endif |
600 pthread_mutex_unlock(&this->vm_lock); | |
601 if (stream_change.physical_wide != -1 && | 600 if (stream_change.physical_wide != -1 && |
602 stream_change.physical_letterbox != -1 && | 601 stream_change.physical_letterbox != -1 && |
603 stream_change.physical_pan_scan != -1) { | 602 stream_change.physical_pan_scan != -1) { |
604 #ifdef LOG_DEBUG | 603 #ifdef LOG_DEBUG |
605 fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE returning S_OK\n"); | 604 fprintf(MSG_OUT, "libdvdnav: SPU_STREAM_CHANGE returning S_OK\n"); |
606 #endif | 605 #endif |
606 pthread_mutex_unlock(&this->vm_lock); | |
607 return S_OK; | 607 return S_OK; |
608 } | 608 } |
609 } | 609 } |
610 | 610 |
611 if(this->position_current.audio_channel != this->position_next.audio_channel) { | 611 if(this->position_current.audio_channel != this->position_next.audio_channel) { |
1008 return this->position_next.still; | 1008 return this->position_next.still; |
1009 } | 1009 } |
1010 | 1010 |
1011 /* | 1011 /* |
1012 * $Log$ | 1012 * $Log$ |
1013 * Revision 1.37 2002/09/18 14:26:42 mroi | |
1014 * fix possible unlock on not locked mutex | |
1015 * | |
1013 * Revision 1.36 2002/09/17 11:00:21 jcdutton | 1016 * Revision 1.36 2002/09/17 11:00:21 jcdutton |
1014 * First patch for personalized dvd viewing. I have not tested it yet. | 1017 * First patch for personalized dvd viewing. I have not tested it yet. |
1015 * | 1018 * |
1016 * Revision 1.35 2002/09/05 12:55:05 mroi | 1019 * Revision 1.35 2002/09/05 12:55:05 mroi |
1017 * fix memleaks in dvdnav_open | 1020 * fix memleaks in dvdnav_open |