summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2005-04-19 17:42:29 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2005-04-19 17:42:29 +0000
commitc118e5e64393d35406b5978acae1b4fa1032bbe2 (patch)
treefd2eb961b9b09bb3b37d690171f4ce75c309839a
parent66df186329773213a970fd05b70918feeab873a0 (diff)
downloadxine-lib-c118e5e64393d35406b5978acae1b4fa1032bbe2.tar.gz
xine-lib-c118e5e64393d35406b5978acae1b4fa1032bbe2.tar.bz2
**BUGFIX**
Send the XINE_EVENT_UI_CHANNELS_CHANGED UI event when SPU, or audio channels are added CVS patchset: 7468 CVS date: 2005/04/19 17:42:29
-rw-r--r--src/xine-engine/audio_decoder.c9
-rw-r--r--src/xine-engine/video_decoder.c9
2 files changed, 14 insertions, 4 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c
index 6338eac6c..dd4a1fb3f 100644
--- a/src/xine-engine/audio_decoder.c
+++ b/src/xine-engine/audio_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_decoder.c,v 1.133 2004/12/16 13:59:06 mroi Exp $
+ * $Id: audio_decoder.c,v 1.134 2005/04/19 17:42:29 hadess Exp $
*
*
* functions that implement audio decoding
@@ -255,7 +255,8 @@ static void *audio_decoder_loop (void *stream_gen) {
if ( (i==stream->audio_track_map_entries)
|| (stream->audio_track_map[i] != buf->type) ) {
-
+ xine_event_t ui_event;
+
j = stream->audio_track_map_entries;
if (j >= 50)
@@ -267,6 +268,10 @@ static void *audio_decoder_loop (void *stream_gen) {
}
stream->audio_track_map[i] = buf->type;
stream->audio_track_map_entries++;
+
+ ui_event.type = XINE_EVENT_UI_CHANNELS_CHANGED;
+ ui_event.data_length = 0;
+ xine_event_send (stream, &ui_event);
}
/* find out which audio type to decode */
diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c
index 4b6fc3fab..e4e500051 100644
--- a/src/xine-engine/video_decoder.c
+++ b/src/xine-engine/video_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_decoder.c,v 1.157 2005/02/13 22:14:17 holstsn Exp $
+ * $Id: video_decoder.c,v 1.158 2005/04/19 17:42:30 hadess Exp $
*
*/
@@ -404,13 +404,14 @@ static void *video_decoder_loop (void *stream_gen) {
update_spu_decoder(stream, buf->type);
/* update track map */
-
+
i = 0;
while ( (i<stream->spu_track_map_entries) && (stream->spu_track_map[i]<buf->type) )
i++;
if ( (i==stream->spu_track_map_entries)
|| (stream->spu_track_map[i] != buf->type) ) {
+ xine_event_t ui_event;
j = stream->spu_track_map_entries;
@@ -423,6 +424,10 @@ static void *video_decoder_loop (void *stream_gen) {
}
stream->spu_track_map[i] = buf->type;
stream->spu_track_map_entries++;
+
+ ui_event.type = XINE_EVENT_UI_CHANNELS_CHANGED;
+ ui_event.data_length = 0;
+ xine_event_send (stream, &ui_event);
}
if (stream->spu_channel_user >= 0) {