From 511d60c204afd022f0b8dcb7f930019062fd91bf Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 5 Mar 2013 15:25:34 +0100 Subject: [PATCH] Fix setting width and height in the capsfilter --- gst-custom-player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-custom-player.py b/gst-custom-player.py index dd7a84b..150163e 100755 --- a/gst-custom-player.py +++ b/gst-custom-player.py @@ -42,7 +42,7 @@ class CustomVideoBin(gst.Bin): queue = gst.element_factory_make('queue', 'vqueue') self.add(queue) - caps = gst.Caps("video/x-raw-yuv,format=(fourcc)AYUV,width=%d,height=%d" % (HEIGHT, WIDTH)) + caps = gst.Caps("video/x-raw-yuv,format=(fourcc)AYUV,width=%d,height=%d" % (WIDTH, HEIGHT)) capsfilter = gst.element_factory_make("capsfilter", "filter") capsfilter.set_property("caps", caps) self.add(capsfilter) -- 2.1.4