diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-10-12 14:49:28 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-10-12 14:49:28 +0200 |
commit | c7272913d127bd221be1dc8c81fe43d15bccacd7 (patch) | |
tree | 725e511cb47bd15b479f8d9459da481c5164cbc4 /ext | |
parent | d9a863ed7f88982c172c55b6cb5de7011dda8539 (diff) |
dvdreadsrc: update dvd event to enhanced approach
... in line with resindvdsrc.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dvdread/dvdreadsrc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c index ca0bf551..e87458c8 100644 --- a/ext/dvdread/dvdreadsrc.c +++ b/ext/dvdread/dvdreadsrc.c @@ -510,6 +510,9 @@ gst_dvd_read_src_goto_title (GstDvdReadSrc * src, gint title, gint angle) t = g_strdup_printf ("audio-%d-format", i); gst_structure_set (s, t, G_TYPE_INT, (int) a->audio_format, NULL); g_free (t); + t = g_strdup_printf ("audio-%d-stream", i); + gst_structure_set (s, t, G_TYPE_INT, (int) i, NULL); + g_free (t); if (a->lang_type) { t = g_strdup_printf ("audio-%d-language", i); @@ -547,10 +550,15 @@ gst_dvd_read_src_goto_title (GstDvdReadSrc * src, gint title, gint angle) } if (u->type) { - t = g_strdup_printf ("subtitle-%d-language", sid); + t = g_strdup_printf ("subpicture-%d-language", i); lang_code[0] = (u->lang_code >> 8) & 0xff; lang_code[1] = u->lang_code & 0xff; gst_structure_set (s, t, G_TYPE_STRING, lang_code, NULL); + t = g_strdup_printf ("subpicture-%d-stream", i); + gst_structure_set (s, t, G_TYPE_INT, (int) sid, NULL); + g_free (t); + t = g_strdup_printf ("subpicture-%d-format", i); + gst_structure_set (s, t, G_TYPE_INT, (int) 0, NULL); g_free (t); } else { lang_code[0] = '\0'; |