aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/src/gst_fixes.c
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2022-05-14 13:59:54 +0200
committerfiaxh <git@lightrise.org>2022-07-27 20:34:20 +0200
commit2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603 (patch)
tree9e0838c48fe003d4cda8429841a6518842a8596b /plugins/rtp/src/gst_fixes.c
parent7e7dcedaf31ee35499875491c9f569c575d28435 (diff)
downloaddino-2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603.tar.gz
dino-2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603.zip
Video for GTK4
Diffstat (limited to 'plugins/rtp/src/gst_fixes.c')
-rw-r--r--plugins/rtp/src/gst_fixes.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/rtp/src/gst_fixes.c b/plugins/rtp/src/gst_fixes.c
new file mode 100644
index 00000000..86b2b598
--- /dev/null
+++ b/plugins/rtp/src/gst_fixes.c
@@ -0,0 +1,10 @@
+#include <gst/video/video.h>
+
+GstVideoInfo *gst_video_frame_get_video_info(GstVideoFrame *frame) {
+ return &frame->info;
+}
+
+void *gst_video_frame_get_data(GstVideoFrame *frame, size_t* length) {
+ *length = frame->info.height * frame->info.stride[0];
+ return frame->data[0];
+} \ No newline at end of file