diff options
author | Rafael Antognolli <antognolli@gmail.com> | 2012-12-04 00:45:47 +0000 |
---|---|---|
committer | Rafael Antognolli <antognolli@gmail.com> | 2012-12-04 00:45:47 +0000 |
commit | f6a31b390b709f72d13440796468a6ad3ca006b5 (patch) | |
tree | 7d70472d44cd39883de0fdc3224360f3962e7313 /src | |
parent | 858e70bb1014c49266145905f8a8453194b0a6bd (diff) | |
download | emotion_generic_players-f6a31b390b709f72d13440796468a6ad3ca006b5.tar.gz |
emotion/generic/vlc: Only send frame size when it's not zero.
SVN revision: 80117
Diffstat (limited to 'src')
-rw-r--r-- | src/vlc/emotion_generic_vlc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/vlc/emotion_generic_vlc.c b/src/vlc/emotion_generic_vlc.c index 583036d..836eda3 100644 --- a/src/vlc/emotion_generic_vlc.c +++ b/src/vlc/emotion_generic_vlc.c @@ -708,7 +708,12 @@ _position_changed(struct _App *app) w = 1; h = 1; } - _send_resize(app, w, h); + + if (w > 0 || h > 0) + { + _send_resize(app, w, h); + app->size_sent = 1; + } /* sending audio track info */ _send_all_track_info(app); @@ -716,7 +721,8 @@ _position_changed(struct _App *app) /* sending meta info */ _send_all_meta_info(app); - libvlc_media_player_stop(app->mp); + if (app->size_sent) + libvlc_media_player_stop(app->mp); } static void |