fix for element flag updates

This commit is contained in:
Wim Taymans 2011-11-28 16:57:24 +01:00
parent b6a9c98cf2
commit ac849ec2b3
5 changed files with 11 additions and 11 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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);