mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
playback/player: ios: Make sure dimensions are valid
Layouting code crashes if 0/0 get passed https://github.com/sdroege/gst-player/pull/22
This commit is contained in:
parent
109e63d7d7
commit
d270aec9d1
1 changed files with 3 additions and 1 deletions
|
@ -159,7 +159,9 @@
|
|||
static void video_dimensions_changed (GstPlayer * unused, gint width, gint height, VideoViewController * self)
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
if (width > 0 && height > 0) {
|
||||
[self videoDimensionsChanged:width height:height];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue