Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
eaae0168
Commit
eaae0168
authored
Sep 15, 2016
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtspsrc: Use new bin suppressed flags API for managing the element flags
parent
cae9ec0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
gst/rtsp/gstrtspsrc.c
gst/rtsp/gstrtspsrc.c
+2
-6
No files found.
gst/rtsp/gstrtspsrc.c
View file @
eaae0168
...
...
@@ -906,6 +906,8 @@ gst_rtspsrc_init (GstRTSPSrc * src)
src
->
state
=
GST_RTSP_STATE_INVALID
;
GST_OBJECT_FLAG_SET
(
src
,
GST_ELEMENT_FLAG_SOURCE
);
gst_bin_set_suppressed_flags
(
GST_BIN
(
src
),
GST_ELEMENT_FLAG_SOURCE
|
GST_ELEMENT_FLAG_SINK
);
}
static
void
...
...
@@ -3618,9 +3620,6 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src,
g_object_set
(
G_OBJECT
(
stream
->
fakesrc
),
"filltype"
,
3
,
"num-buffers"
,
5
,
"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_FLAG_SINK
);
/* keep everything locked */
gst_element_set_locked_state
(
stream
->
udpsink
[
0
],
TRUE
);
gst_element_set_locked_state
(
stream
->
fakesrc
,
TRUE
);
...
...
@@ -3667,9 +3666,6 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src,
g_object_unref
(
socket
);
}
/* we don't want to consider this a 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
);
gst_element_set_state
(
stream
->
udpsink
[
1
],
GST_STATE_PLAYING
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment