aboutsummaryrefslogtreecommitdiff
path: root/plugins/rtp/src/gst_fixes.c
diff options
context:
space:
mode:
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