mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +00:00
playsink: Don't block on non-serialized events
https://bugzilla.gnome.org/show_bug.cgi?id=729321
This commit is contained in:
parent
67289fd184
commit
4d062b230a
1 changed files with 12 additions and 0 deletions
|
@ -1013,6 +1013,12 @@ gst_play_sink_vis_blocked (GstPad * tee_pad, GstPadProbeInfo * info,
|
||||||
|
|
||||||
playsink = GST_PLAY_SINK (user_data);
|
playsink = GST_PLAY_SINK (user_data);
|
||||||
|
|
||||||
|
if (GST_IS_EVENT (info->data) && !GST_EVENT_IS_SERIALIZED (info->data)) {
|
||||||
|
GST_DEBUG_OBJECT (playsink, "Letting non-serialized event %s pass",
|
||||||
|
GST_EVENT_TYPE_NAME (info->data));
|
||||||
|
return GST_PAD_PROBE_PASS;
|
||||||
|
}
|
||||||
|
|
||||||
GST_PLAY_SINK_LOCK (playsink);
|
GST_PLAY_SINK_LOCK (playsink);
|
||||||
GST_DEBUG_OBJECT (playsink, "vis pad blocked");
|
GST_DEBUG_OBJECT (playsink, "vis pad blocked");
|
||||||
/* now try to change the plugin in the running vis chain */
|
/* now try to change the plugin in the running vis chain */
|
||||||
|
@ -4127,6 +4133,12 @@ sinkpad_blocked_cb (GstPad * blockedpad, GstPadProbeInfo * info,
|
||||||
GstPlaySink *playsink = (GstPlaySink *) user_data;
|
GstPlaySink *playsink = (GstPlaySink *) user_data;
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
|
|
||||||
|
if (GST_IS_EVENT (info->data) && !GST_EVENT_IS_SERIALIZED (info->data)) {
|
||||||
|
GST_DEBUG_OBJECT (playsink, "Letting non-serialized event %s pass",
|
||||||
|
GST_EVENT_TYPE_NAME (info->data));
|
||||||
|
return GST_PAD_PROBE_PASS;
|
||||||
|
}
|
||||||
|
|
||||||
GST_PLAY_SINK_LOCK (playsink);
|
GST_PLAY_SINK_LOCK (playsink);
|
||||||
|
|
||||||
pad = GST_PAD_CAST (gst_proxy_pad_get_internal (GST_PROXY_PAD (blockedpad)));
|
pad = GST_PAD_CAST (gst_proxy_pad_get_internal (GST_PROXY_PAD (blockedpad)));
|
||||||
|
|
Loading…
Reference in a new issue