diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-07-06 10:05:38 -0700 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-07-06 10:05:38 -0700 |
commit | 85c34f4899bccbec4ae9745d4b3bbb4dd4ea1d28 (patch) | |
tree | 200fedc3dd7bb46b04d7977db52a0023e956f614 /farstream | |
parent | cea31282cd7197647776793fc5cee6c7943caec3 (diff) |
Only emit valid resolution requests
Diffstat (limited to 'farstream')
-rw-r--r-- | farstream/telepathy-farstream/call-content.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/farstream/telepathy-farstream/call-content.c b/farstream/telepathy-farstream/call-content.c index 4ef33df2a..098aaf57d 100644 --- a/farstream/telepathy-farstream/call-content.c +++ b/farstream/telepathy-farstream/call-content.c @@ -556,6 +556,10 @@ on_content_video_resolution_changed (TfFutureCallContent *proxy, tp_value_array_unpack ((GValueArray *)resolution, 2, &width, &height, NULL); + /* Can be 0 in the initial property dump, shouldn't be at any other time */ + if (width == 0 || height == 0) + return; + self->width = width; self->height = height; |