mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
printf: handle old GST_PTR_FORMAT %P and GST_SEGMENT_FORMAT %Q defines too
For binary backwards compatibility.
This commit is contained in:
parent
5803da553c
commit
9a9b449c5f
1 changed files with 14 additions and 0 deletions
|
@ -387,6 +387,13 @@ printf_parse (const char *format, char_directives * d, arguments * a)
|
||||||
c = 's';
|
c = 's';
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
/* Old GST_PTR_FORMAT, handle for binary backwards compatibility */
|
||||||
|
case 'P':
|
||||||
|
type = TYPE_POINTER_EXT;
|
||||||
|
dp->flags |= FLAG_PTR_EXT;
|
||||||
|
dp->ptr_ext_char = 'A';
|
||||||
|
dp->conversion = 'p';
|
||||||
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
/* Note: cp points already to the char after the 'p' now */
|
/* Note: cp points already to the char after the 'p' now */
|
||||||
if (cp[0] == POINTER_EXT_SIGNIFIER_CHAR && cp[1] != '\0') {
|
if (cp[0] == POINTER_EXT_SIGNIFIER_CHAR && cp[1] != '\0') {
|
||||||
|
@ -400,6 +407,13 @@ printf_parse (const char *format, char_directives * d, arguments * a)
|
||||||
type = TYPE_POINTER;
|
type = TYPE_POINTER;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
/* Old GST_SEGMENT_FORMAT, handle for backwards compatibility */
|
||||||
|
case 'Q':
|
||||||
|
type = TYPE_POINTER_EXT;
|
||||||
|
dp->flags |= FLAG_PTR_EXT;
|
||||||
|
dp->ptr_ext_char = 'B';
|
||||||
|
dp->conversion = 'p';
|
||||||
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
#ifdef HAVE_LONG_LONG
|
#ifdef HAVE_LONG_LONG
|
||||||
if (flags >= 16 || (flags & 4))
|
if (flags >= 16 || (flags & 4))
|
||||||
|
|
Loading…
Reference in a new issue