bufferpool: Fix the buffer size reset code
[platform/upstream/gstreamer.git] / gst / printf / printf-parse.c
index f8d3475..d045ae8 100644 (file)
 #include <stddef.h>
 
 /* Get intmax_t.  */
-#if HAVE_STDINT_H_WITH_UINTMAX
+#ifdef HAVE_STDINT_H_WITH_UINTMAX
 # include <stdint.h>
 #endif
-#if HAVE_INTTYPES_H_WITH_UINTMAX
+#ifdef HAVE_INTTYPES_H_WITH_UINTMAX
 # include <inttypes.h>
 #endif
 
@@ -256,6 +256,10 @@ printf_parse (const char *format, char_directives * d, arguments * a)
               cp += 3;
             }
 #endif
+            else if (cp[0] == 'I' && cp[1] == '3' && cp[2] == '2') {
+              //flags = 32;
+              cp += 3;
+            }
 #ifdef HAVE_INTMAX_T
             else if (*cp == 'j') {
               if (sizeof (intmax_t) > sizeof (long)) {
@@ -392,7 +396,7 @@ printf_parse (const char *format, char_directives * d, arguments * a)
               type = TYPE_POINTER_EXT;
               dp->flags |= FLAG_PTR_EXT;
               dp->ptr_ext_char = 'A';
-              dp->conversion = 'p';
+              c = 'p';
               break;
             case 'p':
               /* Note: cp points already to the char after the 'p' now */
@@ -413,7 +417,7 @@ printf_parse (const char *format, char_directives * d, arguments * a)
               type = TYPE_POINTER_EXT;
               dp->flags |= FLAG_PTR_EXT;
               dp->ptr_ext_char = 'B';
-              dp->conversion = 'p';
+              c = 'p';
               break;
             case 'n':
 #ifdef HAVE_LONG_LONG