[rygel-gst-0-10-fullscreen-renderer] Fix string comparision



commit f33d81da5a3ec296ec7ef968e1589a1b7c7e7098
Author: Jens Georg <mail jensge org>
Date:   Thu Feb 14 11:41:56 2013 +0100

    Fix string comparision

 src/rygel-playbin-player.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/rygel-playbin-player.c b/src/rygel-playbin-player.c
index 2898401..efb3861 100644
--- a/src/rygel-playbin-player.c
+++ b/src/rygel-playbin-player.c
@@ -528,7 +528,7 @@ rygel_playbin_player_real_set_playback_state (RygelMediaPlayer *base, const gcha
 
   g_debug ("rygel-playbin-player.c: Changing playback state to %s.", value);
 
-  if (g_strcmp0 (value, "STOPPED")) {
+  if (g_strcmp0 (value, "STOPPED") == 0) {
     if (self->priv->_playback_state)
       g_free (self->priv->_playback_state);
 
@@ -539,7 +539,7 @@ rygel_playbin_player_real_set_playback_state (RygelMediaPlayer *base, const gcha
     } else {
       self->priv->_playback_state = g_strdup (value);
     }
-  } else if (g_strcmp0 (value, "PAUSED_PLAYBACK")) {
+  } else if (g_strcmp0 (value, "PAUSED_PLAYBACK") == 0) {
     if (self->priv->_playback_state)
       g_free (self->priv->_playback_state);
 
@@ -550,7 +550,7 @@ rygel_playbin_player_real_set_playback_state (RygelMediaPlayer *base, const gcha
     } else {
       self->priv->_playback_state = g_strdup (value);
     }
-  } else if (g_strcmp0 (value, "PLAYING")) {
+  } else if (g_strcmp0 (value, "PLAYING") == 0) {
     if (self->priv->_playback_state)
       g_free (self->priv->_playback_state);
 
@@ -567,7 +567,7 @@ rygel_playbin_player_real_set_playback_state (RygelMediaPlayer *base, const gcha
     } else {
       self->priv->_playback_state = g_strdup (value);
     }
-  } else if (g_strcmp0 (value, "EOS")) {
+  } else if (g_strcmp0 (value, "EOS") == 0) {
     if (self->priv->_playback_state)
       g_free (self->priv->_playback_state);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]