videopool: store videoinfo after choosing the biggest buffer size
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Wed, 6 Jan 2016 14:49:59 +0000 (15:49 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 6 Jan 2016 16:29:42 +0000 (11:29 -0500)
Otherwise, pool could be negotiated with a size which will be different
from the one used in allocation which is the GstVideoInfo.

https://bugzilla.gnome.org/show_bug.cgi?id=760222

gst-libs/gst/video/gstvideopool.c

index 62026e9..f2ef276 100644 (file)
@@ -197,8 +197,8 @@ video_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
       gst_buffer_pool_config_set_allocator (config, allocator, &priv->params);
     }
   }
-  priv->info = info;
   info.size = MAX (size, info.size);
+  priv->info = info;
 
   gst_buffer_pool_config_set_params (config, caps, info.size, min_buffers,
       max_buffers);