mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
playbin2: blacklist subpictures for now
Blacklist the subpictures until we add support for them. Add some small debug info. See #576408.
This commit is contained in:
parent
852ace9cce
commit
786b0c248c
1 changed files with 13 additions and 0 deletions
|
@ -1708,6 +1708,11 @@ pad_added_cb (GstElement * decodebin, GstPad * pad, GstSourceGroup * group)
|
|||
"pad %s:%s with caps %" GST_PTR_FORMAT " added in group %p",
|
||||
GST_DEBUG_PAD_NAME (pad), caps, group);
|
||||
|
||||
for (i = 0; blacklisted_mimes[i]; i++) {
|
||||
if (!strcmp (name, blacklisted_mimes[i]))
|
||||
goto blacklisted_type;
|
||||
}
|
||||
|
||||
/* major type of the pad, this determines the selector to use */
|
||||
for (i = 0; i < GST_PLAY_SINK_TYPE_LAST; i++) {
|
||||
if (g_str_has_prefix (name, group->selector[i].media)) {
|
||||
|
@ -1800,6 +1805,12 @@ done:
|
|||
return;
|
||||
|
||||
/* ERRORS */
|
||||
blacklisted_type:
|
||||
{
|
||||
GST_WARNING_OBJECT (playbin, "blacklisted type %s for pad %s:%s",
|
||||
name, GST_DEBUG_PAD_NAME (pad));
|
||||
goto done;
|
||||
}
|
||||
unknown_type:
|
||||
{
|
||||
GST_ERROR_OBJECT (playbin, "unknown type %s for pad %s:%s",
|
||||
|
@ -2177,6 +2188,8 @@ activate_group (GstPlayBin * playbin, GstSourceGroup * group)
|
|||
g_return_val_if_fail (group->valid, FALSE);
|
||||
g_return_val_if_fail (!group->active, FALSE);
|
||||
|
||||
GST_DEBUG_OBJECT (playbin, "activating group %p", group);
|
||||
|
||||
GST_SOURCE_GROUP_LOCK (group);
|
||||
if (group->uridecodebin) {
|
||||
GST_DEBUG_OBJECT (playbin, "reusing existing uridecodebin");
|
||||
|
|
Loading…
Reference in a new issue