changeset 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 5a28a534ecf9
children 9991d074349a
files dvdnav.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dvdnav.c	Sat Jun 28 09:20:17 2008 +0000
+++ b/dvdnav.c	Sun Jun 29 12:58:08 2008 +0000
@@ -699,6 +699,7 @@
 #endif
     (*len) = sizeof(dvdnav_audio_stream_change_event_t);
     stream_change->physical = vm_get_audio_active_stream( this->vm );
+    stream_change->logical = this->position_next.audio_channel;
     this->position_current.audio_channel = this->position_next.audio_channel;
 #ifdef LOG_DEBUG
     fprintf(MSG_OUT, "libdvdnav: AUDIO_STREAM_CHANGE stream_id=%d returning DVDNAV_STATUS_OK\n",stream_change->physical);