mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
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:
parent
e685a9e86d
commit
7d049bc29f
1 changed files with 4 additions and 0 deletions
|
@ -1151,6 +1151,10 @@ make_decoder (GstURIDecodeBin * decoder)
|
||||||
if (!decodebin)
|
if (!decodebin)
|
||||||
goto no_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 */
|
/* connect signals to proxy */
|
||||||
g_signal_connect (G_OBJECT (decodebin), "unknown-type",
|
g_signal_connect (G_OBJECT (decodebin), "unknown-type",
|
||||||
G_CALLBACK (proxy_unknown_type_signal), decoder);
|
G_CALLBACK (proxy_unknown_type_signal), decoder);
|
||||||
|
|
Loading…
Reference in a new issue