diff options
author | Arnaud Vrac <avrac@freebox.fr> | 2013-12-05 21:59:18 +0100 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2015-09-26 23:18:32 +1000 |
commit | a41e7c5bec8512e1addf1548153401ec0e036727 (patch) | |
tree | fb101bf6e892516508b70a1635a7bf53d48dc70a /gst/dvdspu | |
parent | dd3e9deb2aa695a391b58f24d86a3c00bbc1258a (diff) | |
download | gstreamer-plugins-bad-a41e7c5bec8512e1addf1548153401ec0e036727.tar.gz |
dvdspu: allow suffix in dvd event name to allow multiple sticky dvd events
https://bugzilla.gnome.org/show_bug.cgi?id=663750
Diffstat (limited to 'gst/dvdspu')
-rw-r--r-- | gst/dvdspu/gstdvdspu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c index 4fe1ac10b..2bf5a91fe 100644 --- a/gst/dvdspu/gstdvdspu.c +++ b/gst/dvdspu/gstdvdspu.c @@ -1242,9 +1242,10 @@ gst_dvd_spu_subpic_event (GstPad * pad, GstObject * parent, GstEvent * event) case GST_EVENT_CUSTOM_DOWNSTREAM_OOB: { const GstStructure *structure = gst_event_get_structure (event); + const gchar *name = gst_structure_get_name (structure); gboolean need_push; - if (!gst_structure_has_name (structure, "application/x-gst-dvd")) { + if (!g_str_has_prefix (name, "application/x-gst-dvd")) { res = gst_pad_event_default (pad, parent, event); break; } |