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
5f9fdf7c
Commit
5f9fdf7c
authored
Jan 19, 2021
by
Evangelos Ribeiro Tzaras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use codec derived capabilities
parent
594d70d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
combined.c
combined.c
+4
-5
No files found.
combined.c
View file @
5f9fdf7c
...
...
@@ -32,9 +32,6 @@ typedef struct {
#define RTCP_PORT_RECV_SINK 5003
#define RTCP_PORT_RECV_SRC 5007
// get this from gst-rfc3551.h
#define CAPS "application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)G722,payload=(int)9"
/* TODO:
* watch the gstreamer busses
* remove previously linked pads (if any) in the "pad-added" handler
...
...
@@ -146,6 +143,7 @@ main (int argc,
GstCodec
*
codec
=
NULL
;
GstPad
*
srcpad
,
*
sinkpad
;
GstCaps
*
caps
;
g_autofree
gchar
*
caps_string
=
NULL
;
const
gchar
*
codec_name
=
g_getenv
(
"CODEC"
);
const
gchar
*
remote
=
g_getenv
(
"REMOTE"
);
...
...
@@ -161,7 +159,8 @@ main (int argc,
gst_init
(
&
argc
,
&
argv
);
g_debug
(
"Capabilities:
\n
%s"
,
gst_codec_get_gst_capabilities
(
codec
));
caps_string
=
gst_codec_get_gst_capabilities
(
codec
);
g_debug
(
"Capabilities:
\n
%s"
,
caps_string
);
/* could also use autoaudiosink instead of pulsesink */
data
.
audiosink
=
gst_element_factory_make
(
"pulsesink"
,
"sink"
);
...
...
@@ -212,7 +211,7 @@ main (int argc,
gst_bin_add
(
GST_BIN
(
data
.
send_pipeline
),
data
.
send_rtpbin
);
gst_bin_add
(
GST_BIN
(
data
.
recv_pipeline
),
data
.
recv_rtpbin
);
caps
=
gst_caps_from_string
(
CAPS
);
caps
=
gst_caps_from_string
(
caps_string
);
/* set udp sinks and sources for RTP and RTCP */
/* receive/in direction */
g_object_set
(
data
.
rtp_src
,
...
...
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