X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fexamples%2Fencoding%2Fencoding.c;h=bb0072a86a2618c285a6823ecfa654c4efb23e31;hb=fb6d09055ae90979682fa4b1c6ee4f4abdaafd8f;hp=497aa63dfb572d0de15d42f1121116b8b18bf1fb;hpb=f372ec1f548e417c5baa2d122b54877f983da7d8;p=platform%2Fupstream%2Fgstreamer.git diff --git a/tests/examples/encoding/encoding.c b/tests/examples/encoding/encoding.c index 497aa63..bb0072a 100644 --- a/tests/examples/encoding/encoding.c +++ b/tests/examples/encoding/encoding.c @@ -225,7 +225,7 @@ pad_added_cb (GstElement * uridecodebin, GstPad * pad, GstElement * encodebin) GstCaps *caps; /* Ask encodebin for a compatible pad */ - caps = gst_pad_get_caps (pad, NULL); + caps = gst_pad_query_caps (pad, NULL); g_signal_emit_by_name (encodebin, "request-pad", caps, &sinkpad); if (caps) gst_caps_unref (caps); @@ -395,8 +395,10 @@ main (int argc, char **argv) GstEncodingProfile *prof; gchar *inputuri; +#if !GLIB_CHECK_VERSION (2, 31, 0) if (!g_thread_supported ()) g_thread_init (NULL); +#endif ctx = g_option_context_new ("- encode URIs with GstProfile and encodebin"); g_option_context_add_main_entries (ctx, options, NULL); @@ -501,7 +503,7 @@ main (int argc, char **argv) return 1; } - /* Trancode file */ + /* Transcode file */ transcode_file (inputuri, outputuri, prof); /* cleanup */