When the layout of the audio streams changes, re-send the current
audio stream selection event, in order to trigger switching to the
new stream properly.
https://bugzilla.gnome.org/show_bug.cgi?id=575568
audio_attr_t *a_attrs;
subp_attr_t *s_attrs;
gint n_audio, n_subp;
+ int8_t cur_audio;
GstStructure *s;
GstEvent *e;
gint i;
NULL);
/* audio */
+ cur_audio = dvdnav_get_active_audio_stream (src->dvdnav);
+
have_audio = FALSE;
for (i = 0; i < n_audio; i++) {
const audio_attr_t *a = a_attrs + i;
GST_DEBUG_OBJECT (src, "mapped logical audio %d to MPEG substream %d",
i, phys_id);
-
+ /* Force audio stream reselection in case format changed ... */
+ if (i == cur_audio) {
+ src->cur_audio_phys_stream = -1;
+ rsn_dvdsrc_prepare_audio_stream_event (src, i, phys_id);
+ }
#if 0
/* FIXME: Only output A52 streams for now, until the decoder switching
* is ready */