Skip to content

Commit

Permalink
Add: Gstreamer plugin for sending ancillary data
Browse files Browse the repository at this point in the history
Signed-off-by: Kasiewicz, Marek <[email protected]>
  • Loading branch information
Sakoram committed Jan 17, 2025
1 parent 51026f6 commit 0812ef5
Show file tree
Hide file tree
Showing 6 changed files with 526 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecosystem/gstreamer_plugin/gst_mtl_st30p_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]>");

Expand Down
4 changes: 3 additions & 1 deletion ecosystem/gstreamer_plugin/gst_mtl_st40_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]>");

Expand Down Expand Up @@ -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");
Expand Down
Loading

0 comments on commit 0812ef5

Please sign in to comment.