mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
fix for element flag updates
This commit is contained in:
parent
b6a9c98cf2
commit
ac849ec2b3
5 changed files with 11 additions and 11 deletions
|
@ -129,7 +129,7 @@ gst_auto_audio_sink_clear_kid (GstAutoAudioSink * sink)
|
|||
gst_bin_remove (GST_BIN (sink), sink->kid);
|
||||
sink->kid = NULL;
|
||||
/* Don't lose the SINK flag */
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK);
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_FLAG_SINK);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -168,7 +168,7 @@ gst_auto_audio_sink_init (GstAutoAudioSink * sink)
|
|||
sink->filter_caps = gst_static_caps_get (&raw_caps);
|
||||
|
||||
/* mark as sink */
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK);
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_FLAG_SINK);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -132,7 +132,7 @@ gst_auto_audio_src_clear_kid (GstAutoAudioSrc * src)
|
|||
src->kid = NULL;
|
||||
|
||||
/* Don't lose SOURCE flag */
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_FLAG_SOURCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ gst_auto_audio_src_init (GstAutoAudioSrc * src)
|
|||
src->filter_caps = gst_static_caps_get (&raw_caps);
|
||||
|
||||
/* mark as source */
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_FLAG_SOURCE);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -126,7 +126,7 @@ gst_auto_video_sink_clear_kid (GstAutoVideoSink * sink)
|
|||
gst_bin_remove (GST_BIN (sink), sink->kid);
|
||||
sink->kid = NULL;
|
||||
/* Don't lose the SINK flag */
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK);
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_FLAG_SINK);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ gst_auto_video_sink_init (GstAutoVideoSink * sink)
|
|||
sink->filter_caps = gst_static_caps_get (&raw_caps);
|
||||
|
||||
/* mark as sink */
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_IS_SINK);
|
||||
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_FLAG_SINK);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -129,7 +129,7 @@ gst_auto_video_src_clear_kid (GstAutoVideoSrc * src)
|
|||
gst_bin_remove (GST_BIN (src), src->kid);
|
||||
src->kid = NULL;
|
||||
/* Don't loose SOURCE flag */
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_FLAG_SOURCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ gst_auto_video_src_init (GstAutoVideoSrc * src)
|
|||
src->filter_caps = gst_static_caps_get (&raw_caps);
|
||||
|
||||
/* mark as source */
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_FLAG_SOURCE);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -533,7 +533,7 @@ gst_rtspsrc_init (GstRTSPSrc * src)
|
|||
|
||||
src->state = GST_RTSP_STATE_INVALID;
|
||||
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_FLAG_SOURCE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -2870,7 +2870,7 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src,
|
|||
"sizetype", 2, "sizemax", 200, "silent", TRUE, NULL);
|
||||
|
||||
/* we don't want to consider this a sink */
|
||||
GST_OBJECT_FLAG_UNSET (stream->udpsink[0], GST_ELEMENT_IS_SINK);
|
||||
GST_OBJECT_FLAG_UNSET (stream->udpsink[0], GST_ELEMENT_FLAG_SINK);
|
||||
|
||||
/* keep everything locked */
|
||||
gst_element_set_locked_state (stream->udpsink[0], TRUE);
|
||||
|
@ -2913,7 +2913,7 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src,
|
|||
}
|
||||
|
||||
/* we don't want to consider this a sink */
|
||||
GST_OBJECT_FLAG_UNSET (stream->udpsink[1], GST_ELEMENT_IS_SINK);
|
||||
GST_OBJECT_FLAG_UNSET (stream->udpsink[1], GST_ELEMENT_FLAG_SINK);
|
||||
|
||||
/* we keep this playing always */
|
||||
gst_element_set_locked_state (stream->udpsink[1], TRUE);
|
||||
|
|
Loading…
Reference in a new issue