mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
videopool: update video alignment after applying
Video buffer pool will update video alignment to respect stride alignment requirement. But haven't updated it to video alignment in configure. Which will cause user get wrong video alignment. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=741501
This commit is contained in:
parent
ef580889e0
commit
e9c6c833c9
3 changed files with 5 additions and 0 deletions
|
@ -169,6 +169,7 @@ video_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
/* get an apply the alignment to the info */
|
||||
gst_buffer_pool_config_get_video_alignment (config, &priv->video_align);
|
||||
gst_video_info_align (&info, &priv->video_align);
|
||||
gst_buffer_pool_config_set_video_alignment (config, &priv->video_align);
|
||||
}
|
||||
priv->info = info;
|
||||
|
||||
|
|
|
@ -582,6 +582,8 @@ ximage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
/* do padding and alignment */
|
||||
gst_video_info_align (&info, &xpool->align);
|
||||
|
||||
gst_buffer_pool_config_set_video_alignment (config, &xpool->align);
|
||||
|
||||
/* we need the video metadata too now */
|
||||
xpool->add_metavideo = TRUE;
|
||||
} else {
|
||||
|
|
|
@ -106,6 +106,8 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
/* do padding and alignment */
|
||||
gst_video_info_align (&info, &xvpool->align);
|
||||
|
||||
gst_buffer_pool_config_set_video_alignment (config, &xvpool->align);
|
||||
|
||||
/* we need the video metadata too now */
|
||||
xvpool->add_metavideo = TRUE;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue