X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fexamples%2Fseek%2Fseek.c;fp=tests%2Fexamples%2Fseek%2Fseek.c;h=4f73aaf89a512b055e993236017cbb090d74918f;hb=7012e88090e69339c60a4eb9449f7a7e39ca6aa3;hp=8f53685e44e281dc2e37a4d51e98af405a7e8594;hpb=33196cdd2cec82d8fc0546a957bb069208453505;p=platform%2Fupstream%2Fgstreamer.git diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index 8f53685..4f73aaf 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -161,6 +161,16 @@ gst_element_factory_make_or_warn (const gchar * type, const gchar * name) { GstElement *element = gst_element_factory_make (type, name); +#ifndef GST_DISABLE_PARSE + if (!element) { + /* Try parsing it as a pipeline description */ + element = gst_parse_bin_from_description (type, TRUE, NULL); + if (element) { + gst_element_set_name (element, name); + } + } +#endif + if (!element) { g_warning ("Failed to create element %s of type %s", name, type); }