forked from OpenVisualCloud/Media-Transport-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Gstreamer plugin for sending ancillary data
Signed-off-by: Kasiewicz, Marek <[email protected]>
- Loading branch information
Showing
6 changed files
with
526 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,7 +159,7 @@ static void gst_mtl_st30p_tx_class_init(Gst_Mtl_St30p_TxClass* klass) { | |
gstbasesink_class = GST_BASE_SINK_CLASS(klass); | ||
|
||
gst_element_class_set_metadata( | ||
gstelement_class, "MtlTxSt30Sink", "Sink/Video", | ||
gstelement_class, "MtlTxSt30Sink", "Sink/Audio", | ||
"MTL transmission plugin for SMPTE ST 2110-30 standard (audio)", | ||
"Marek Kasiewicz <[email protected]>"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,7 +151,7 @@ static void gst_mtl_st40_rx_class_init(Gst_Mtl_St40_RxClass* klass) { | |
gstbasesrc_class = GST_BASE_SRC_CLASS(klass); | ||
|
||
gst_element_class_set_metadata( | ||
gstelement_class, "MtlRxSt40Src", "Src/Audio", | ||
gstelement_class, "MtlRxSt40Src", "Src/Metadata", | ||
"MTL transmission plugin for SMPTE ST 2110-40 standard (ancillary data))", | ||
"Dawid Wesierski <[email protected]>"); | ||
|
||
|
@@ -361,7 +361,9 @@ static GstFlowReturn gst_mtl_st40_rx_fill_buffer(Gst_Mtl_St40_Rx* src, GstBuffer | |
|
||
hdr = (struct st40_rfc8331_rtp_hdr*)usrptr; | ||
payload_hdr = (struct st40_rfc8331_payload_hdr*)(&hdr[1]); | ||
payload_hdr->swaped_second_hdr_chunk = ntohl(payload_hdr->swaped_second_hdr_chunk); | ||
udw_size = payload_hdr->second_hdr_chunk.data_count & 0xff; | ||
payload_hdr->swaped_second_hdr_chunk = htonl(payload_hdr->swaped_second_hdr_chunk); | ||
|
||
if (udw_size == 0) { | ||
GST_ERROR("Ancillary data size is 0"); | ||
|
Oops, something went wrong.