From f09e12889c4ebfa3db21fa30955698171a22757b Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 26 Apr 2013 18:40:39 +0100 Subject: tinkering gstreamer loader --- rotord/gstvideoloader.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'rotord/gstvideoloader.cpp') diff --git a/rotord/gstvideoloader.cpp b/rotord/gstvideoloader.cpp index 2835b02..c7a9305 100644 --- a/rotord/gstvideoloader.cpp +++ b/rotord/gstvideoloader.cpp @@ -1,12 +1,6 @@ #include "gstvideoloader.h" -#include -#include -#include -#include -#include -#include using namespace std; @@ -949,7 +943,7 @@ bool ofGstVideoPlayer::allocate(int bpp){ nFrames = 0; if(GstPad* pad = gst_element_get_static_pad(videoUtils.getSink(), "sink")){ -/*#if GST_VERSION_MAJOR==0 +#if GST_VERSION_MAJOR==0 int width,height; if(gst_video_get_size(GST_PAD(pad), &width, &height)){ if(!videoUtils.allocate(width,height,bpp)) return false; @@ -971,7 +965,6 @@ bool ofGstVideoPlayer::allocate(int bpp){ } bIsAllocated = true; #else -*/ if(GstCaps *caps = gst_pad_get_current_caps (GST_PAD (pad))){ GstVideoInfo info; gst_video_info_init (&info); @@ -991,7 +984,7 @@ bool ofGstVideoPlayer::allocate(int bpp){ cerr<<"GStreamer: cannot get pipeline caps"<