uridecodebin: configure caps on decodebin2

Implement the caps property by setting the configured caps on new decodebin2
objects.

Fixes #582749
This commit is contained in:
Wim Taymans 2009-05-19 15:35:54 +02:00
parent e685a9e86d
commit 7d049bc29f

View file

@ -1151,6 +1151,10 @@ make_decoder (GstURIDecodeBin * decoder)
if (!decodebin)
goto no_decodebin;
/* configure caps if we have any */
if (decoder->caps)
g_object_set (decodebin, "caps", decoder->caps, NULL);
/* connect signals to proxy */
g_signal_connect (G_OBJECT (decodebin), "unknown-type",
G_CALLBACK (proxy_unknown_type_signal), decoder);