Fix setting width and height in the capsfilter
[experiments/gstreamer.git] / gst-custom-player.py
index 22050ec..150163e 100755 (executable)
@@ -32,7 +32,7 @@ import gst
 # The player window will have a fixed width and height.
 # This is just to demonstrate the use of capabilities.
 WIDTH = 640
-HEIGHT = 480
+HEIGHT = 300
 
 
 class CustomVideoBin(gst.Bin):
@@ -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)