diff options
author | Edward Hervey <edward.hervey@collabora.co.uk> | 2011-10-20 12:11:45 +0200 |
---|---|---|
committer | Edward Hervey <edward.hervey@collabora.co.uk> | 2012-07-12 16:17:53 +0200 |
commit | e02d8c7a3a140fb9f607ed14f8f233843b09d757 (patch) | |
tree | a38741ed971ede9180edcfa33b4f9eb0e8ef013b /tests/test-yuv-upload.c | |
parent | ab78d2d6f25d31205f1b7a50b004275074d549da (diff) |
port to GStreamer 1.0
Contributions from: Alban Browaeys <prahal@yahoo.com>
Diffstat (limited to 'tests/test-yuv-upload.c')
-rw-r--r-- | tests/test-yuv-upload.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/test-yuv-upload.c b/tests/test-yuv-upload.c index ca1ff18..a8ee1dd 100644 --- a/tests/test-yuv-upload.c +++ b/tests/test-yuv-upload.c @@ -52,15 +52,6 @@ static GOptionEntry options[] = { NULL } }; -static guint32 -parse_fourcc (const gchar *fourcc) -{ - if (strlen (fourcc) != 4) - return 0; - - return GST_STR_FOURCC (fourcc); -} - void size_change (ClutterTexture *texture, gint width, @@ -151,9 +142,8 @@ main (int argc, char *argv[]) g_object_set (sink, "texture", CLUTTER_TEXTURE (texture), NULL); /* make videotestsrc spit the format we want */ - caps = gst_caps_new_simple ("video/x-raw-yuv", - "format", GST_TYPE_FOURCC, - parse_fourcc (opt_fourcc), + caps = gst_caps_new_simple ("video/x-raw", + "format", G_TYPE_STRING, opt_fourcc, "framerate", GST_TYPE_FRACTION, opt_framerate, 1, NULL); g_object_set (capsfilter, "caps", caps, NULL); |