Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gstreamer-experiments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Evangelos Ribeiro Tzaras
gstreamer-experiments
Commits
e82a589c
Commit
e82a589c
authored
Jan 19, 2021
by
Evangelos Ribeiro Tzaras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getting closer?
parent
e9717529
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
receiver.c
receiver.c
+4
-5
No files found.
receiver.c
View file @
e82a589c
...
...
@@ -30,11 +30,10 @@ pad_added_cb (GstElement *rtpbin, GstPad *srcpad, GstElement *depayloader)
{
GstPad
*
sinkpad
;
sinkpad
=
gst_element_get_static_pad
(
depayloader
,
"s
rc
"
);
sinkpad
=
gst_element_get_static_pad
(
depayloader
,
"s
ink
"
);
if
(
!
gst_pad_link
(
srcpad
,
sinkpad
))
g_error
(
"Failed to link rtpbin to depayloader"
);
gst_object_unref
(
srcpad
);
gst_object_unref
(
sinkpad
);
}
...
...
@@ -105,20 +104,20 @@ main (int argc, char **argv)
gst_object_unref
(
sinkpad
);
srcpad
=
gst_element_get_static_pad
(
data
.
rtcp_src
,
"src"
);
sinkpad
=
gst_element_get_
static
_pad
(
data
.
rtpbin
,
"recv_rtcp_sink_0"
);
sinkpad
=
gst_element_get_
request
_pad
(
data
.
rtpbin
,
"recv_rtcp_sink_0"
);
if
(
gst_pad_link
(
srcpad
,
sinkpad
)
!=
GST_PAD_LINK_OK
)
g_error
(
"Failed to link rtcpsrc to rtpbin"
);
gst_object_unref
(
srcpad
);
gst_object_unref
(
sinkpad
);
srcpad
=
gst_element_get_
static_pad
(
data
.
rtpbin
,
"recv
_rtcp_src_0"
);
srcpad
=
gst_element_get_
request_pad
(
data
.
rtpbin
,
"send
_rtcp_src_0"
);
sinkpad
=
gst_element_get_static_pad
(
data
.
rtcp_sink
,
"sink"
);
if
(
gst_pad_link
(
srcpad
,
sinkpad
)
!=
GST_PAD_LINK_OK
)
g_error
(
"Failed to link rtpbin to rtcpsink"
);
gst_object_unref
(
srcpad
);
gst_object_unref
(
sinkpad
);
/* need to link RTP pad to the payloader */
/* need to link RTP pad to the
de
payloader */
g_signal_connect
(
data
.
rtpbin
,
"pad-added"
,
G_CALLBACK
(
pad_added_cb
),
data
.
depayloader
);
/* start the pipeline */
...
...
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