summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-01 13:05:05 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-10 15:46:08 +0200
commit7c07e32b90d6a70d733bdb8619b55f886892a963 (patch)
treecae15f29797f0c3b9d28e62cd3a85c23abeb604c
parentcf5f7cffc0777bf0ec03511ec8321504d4399141 (diff)
downloadgstreamer-plugins-base-7c07e32b90d6a70d733bdb8619b55f886892a963.tar.gz
subtitleoverlay: Don't block on non-serialized events
https://bugzilla.gnome.org/show_bug.cgi?id=729321
-rw-r--r--gst/playback/gstsubtitleoverlay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/playback/gstsubtitleoverlay.c b/gst/playback/gstsubtitleoverlay.c
index 76ff34599..401a9bff7 100644
--- a/gst/playback/gstsubtitleoverlay.c
+++ b/gst/playback/gstsubtitleoverlay.c
@@ -1013,6 +1013,12 @@ _pad_blocked_cb (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
GstCaps *subcaps;
GList *l, *factories = NULL;
+ if (GST_IS_EVENT (info->data) && !GST_EVENT_IS_SERIALIZED (info->data)) {
+ GST_DEBUG_OBJECT (pad, "Letting non-serialized event %s pass",
+ GST_EVENT_TYPE_NAME (info->data));
+ return GST_PAD_PROBE_PASS;
+ }
+
GST_DEBUG_OBJECT (pad, "Pad blocked");
GST_SUBTITLE_OVERLAY_LOCK (self);