comparison dvdnav.c @ 383:275f15342ea3 src

after an AUDIO change event assign the logical stream to the returned event, that for some reason was being ignored. The physical stream is still wrong
author nicodvb
date Sun, 29 Jun 2008 12:58:08 +0000
parents 3e3119415275
children 579a3538d284
comparison
equal deleted inserted replaced
382:5a28a534ecf9 383:275f15342ea3
697 #ifdef LOG_DEBUG 697 #ifdef LOG_DEBUG
698 fprintf(MSG_OUT, "libdvdnav: AUDIO_STREAM_CHANGE\n"); 698 fprintf(MSG_OUT, "libdvdnav: AUDIO_STREAM_CHANGE\n");
699 #endif 699 #endif
700 (*len) = sizeof(dvdnav_audio_stream_change_event_t); 700 (*len) = sizeof(dvdnav_audio_stream_change_event_t);
701 stream_change->physical = vm_get_audio_active_stream( this->vm ); 701 stream_change->physical = vm_get_audio_active_stream( this->vm );
702 stream_change->logical = this->position_next.audio_channel;
702 this->position_current.audio_channel = this->position_next.audio_channel; 703 this->position_current.audio_channel = this->position_next.audio_channel;
703 #ifdef LOG_DEBUG 704 #ifdef LOG_DEBUG
704 fprintf(MSG_OUT, "libdvdnav: AUDIO_STREAM_CHANGE stream_id=%d returning DVDNAV_STATUS_OK\n",stream_change->physical); 705 fprintf(MSG_OUT, "libdvdnav: AUDIO_STREAM_CHANGE stream_id=%d returning DVDNAV_STATUS_OK\n",stream_change->physical);
705 #endif 706 #endif
706 pthread_mutex_unlock(&this->vm_lock); 707 pthread_mutex_unlock(&this->vm_lock);