mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
structure: print a g_warning() if someone tries to construct 0.10-style raw audio/video caps
This commit is contained in:
parent
f0105dd81f
commit
ebe525be4c
1 changed files with 8 additions and 0 deletions
|
@ -183,6 +183,14 @@ gst_structure_validate_name (const gchar * name)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (strncmp (name, "video/x-raw-", 12) == 0) {
|
||||
g_warning ("0.10-style raw video caps are being created. Should be "
|
||||
"video/x-raw,format=(string).. now.");
|
||||
} else if (strncmp (name, "audio/x-raw-", 12) == 0) {
|
||||
g_warning ("0.10-style raw audio caps are being created. Should be "
|
||||
"audio/x-raw,format=(string).. now.");
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue