uridecodebin, tests: update for gst_element_make_from_uri() changes

This commit is contained in:
Tim-Philipp Müller 2012-06-23 14:55:31 +01:00
parent df63268e5a
commit 43e4b44bb1
2 changed files with 3 additions and 2 deletions

View file

@ -1226,7 +1226,8 @@ gen_source_element (GstURIDecodeBin * decoder)
if (IS_BLACKLISTED_URI (decoder->uri))
goto uri_blacklisted;
source = gst_element_make_from_uri (GST_URI_SRC, decoder->uri, "source");
source =
gst_element_make_from_uri (GST_URI_SRC, decoder->uri, "source", NULL);
if (!source)
goto no_source;

View file

@ -289,7 +289,7 @@ transcode_file (gchar * uri, gchar * outputuri, GstEncodingProfile * prof)
g_print (" Input URI : %s\n", uri);
g_print (" Output URI : %s\n", outputuri);
sink = gst_element_make_from_uri (GST_URI_SINK, outputuri, "sink");
sink = gst_element_make_from_uri (GST_URI_SINK, outputuri, "sink", NULL);
if (G_UNLIKELY (sink == NULL)) {
g_print ("Can't create output sink, most likely invalid output URI !\n");
return;