video: Getting component offsets without dimensions is fine if it is not YUV
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 23 Mar 2011 15:02:35 +0000 (12:02 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 23 Mar 2011 15:21:55 +0000 (12:21 -0300)
commit78e8b33c388e7297bf300eada8564ff624b39c8f
tree79388c603f1ec78b635ddad0393416d7722cf109
parent2ab592bac9054859172e4aa7336997b306fa4ba8
video: Getting component offsets without dimensions is fine if it is not YUV

This fixes a regression that an assertion would happen if
gst_video_get_component_offset would be called with width or
height as 0.

Calling it with 0 is fine if the format isn't yuv and this
was already being used in some other places of video.c
gst-libs/gst/video/video.c