summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@collabora.com>2012-08-24 00:26:36 -0400
committerReynaldo H. Verdejo Pinochet <reynaldo@collabora.com>2012-08-24 00:26:36 -0400
commit26a51596c50da6da3acfb12fc0f6bc7712613a00 (patch)
tree55fb11970f3d4ba513556f79f506c01c8a52769d
parent50dd59fb835eb5538d1a9c6baa80991281c283d2 (diff)
Fire default size creation only on 0x0
There's no point on checking for width or height being zero. If that was the case, bad caps where involved and create_window() wouldn't be reached to begin with.
-rw-r--r--sys/android/gstvidroidsink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/android/gstvidroidsink.c b/sys/android/gstvidroidsink.c
index f3decaba5..6e78e6bc9 100644
--- a/sys/android/gstvidroidsink.c
+++ b/sys/android/gstvidroidsink.c
@@ -774,14 +774,13 @@ got_gl_error (const char *wtf)
return FALSE;
}
-/* XXX: Review. Drafted */
static EGLNativeWindowType
gst_vidroidsink_create_window (GstViDroidSink * vidroidsink, gint width,
gint height)
{
EGLNativeWindowType window;
- if (!width || !height) { /* Create a default size window */
+ if (!width && !height) { /* Create a default size window */
width = vidroidsink->window_default_width;
height = vidroidsink->window_default_height;
}