mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
examples/*-rtpaux: specify payload type association for the audio stream, so that rtx works also for audio
This commit is contained in:
parent
397c4ed7a0
commit
a7823bc522
2 changed files with 2 additions and 2 deletions
|
@ -253,7 +253,7 @@ request_aux_receiver (GstElement * rtpbin, guint sessid, SessionData * session)
|
|||
bin = gst_bin_new (NULL);
|
||||
rtx = gst_element_factory_make ("rtprtxreceive", NULL);
|
||||
pt_map = gst_structure_new ("application/x-rtp-pt-map",
|
||||
"96", G_TYPE_UINT, 99, NULL);
|
||||
"8", G_TYPE_UINT, 98, "96", G_TYPE_UINT, 99, NULL);
|
||||
g_object_set (rtx, "payload-type-map", pt_map, NULL);
|
||||
gst_structure_free (pt_map);
|
||||
gst_bin_add (GST_BIN (bin), rtx);
|
||||
|
|
|
@ -173,7 +173,7 @@ request_aux_sender (GstElement * rtpbin, guint sessid, SessionData * session)
|
|||
bin = gst_bin_new (NULL);
|
||||
rtx = gst_element_factory_make ("rtprtxsend", NULL);
|
||||
pt_map = gst_structure_new ("application/x-rtp-pt-map",
|
||||
"96", G_TYPE_UINT, 99, NULL);
|
||||
"8", G_TYPE_UINT, 98, "96", G_TYPE_UINT, 99, NULL);
|
||||
g_object_set (rtx, "payload-type-map", pt_map, NULL);
|
||||
gst_structure_free (pt_map);
|
||||
gst_bin_add (GST_BIN (bin), rtx);
|
||||
|
|
Loading…
Reference in a new issue