projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git]
/
tests
/
examples
/
seek
/
seek.c
diff --git
a/tests/examples/seek/seek.c
b/tests/examples/seek/seek.c
index
8f53685
..
4f73aaf
100644
(file)
--- 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);
{
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);
}
if (!element) {
g_warning ("Failed to create element %s of type %s", name, type);
}