mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
typefindelement: Only send caps when pad is being activated
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=677819
This commit is contained in:
parent
a362b844f8
commit
b3cee7155a
1 changed files with 2 additions and 2 deletions
|
@ -979,7 +979,7 @@ gst_type_find_element_activate_src_mode (GstPad * pad, GstObject * parent,
|
||||||
* activation might happen from the streaming thread. */
|
* activation might happen from the streaming thread. */
|
||||||
gst_pad_pause_task (typefind->sink);
|
gst_pad_pause_task (typefind->sink);
|
||||||
res = gst_pad_activate_mode (typefind->sink, mode, active);
|
res = gst_pad_activate_mode (typefind->sink, mode, active);
|
||||||
if (res && typefind->caps) {
|
if (active && res && typefind->caps) {
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GST_OBJECT_LOCK (typefind);
|
GST_OBJECT_LOCK (typefind);
|
||||||
caps = gst_caps_ref (typefind->caps);
|
caps = gst_caps_ref (typefind->caps);
|
||||||
|
|
Loading…
Reference in a new issue