summaryrefslogtreecommitdiff
path: root/legacy/emotion/src
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2012-12-04 00:45:47 +0000
committerRafael Antognolli <antognolli@gmail.com>2012-12-04 00:45:47 +0000
commit778bf8473f65eddc39e648befda0d4572e950423 (patch)
treef64b9121798a2fcb13b3ccf59a6da676b48fc3d2 /legacy/emotion/src
parente295ed866209b5e7762b3ac06ae3c8f38ca27938 (diff)
emotion/generic/vlc: Only send frame size when it's not zero.
SVN revision: 80117
Diffstat (limited to 'legacy/emotion/src')
-rw-r--r--legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c b/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
index 583036df6f..836eda3a45 100644
--- a/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
+++ b/legacy/emotion/src/generic_players/vlc/emotion_generic_vlc.c
@@ -708,7 +708,12 @@ _position_changed(struct _App *app)
708 w = 1; 708 w = 1;
709 h = 1; 709 h = 1;
710 } 710 }
711 _send_resize(app, w, h); 711
712 if (w > 0 || h > 0)
713 {
714 _send_resize(app, w, h);
715 app->size_sent = 1;
716 }
712 717
713 /* sending audio track info */ 718 /* sending audio track info */
714 _send_all_track_info(app); 719 _send_all_track_info(app);
@@ -716,7 +721,8 @@ _position_changed(struct _App *app)
716 /* sending meta info */ 721 /* sending meta info */
717 _send_all_meta_info(app); 722 _send_all_meta_info(app);
718 723
719 libvlc_media_player_stop(app->mp); 724 if (app->size_sent)
725 libvlc_media_player_stop(app->mp);
720} 726}
721 727
722static void 728static void