[totem] browser-plugin: Fix some function error returns



commit c7967873638a2001e721cddd69ce934b878342b7
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Sep 30 13:09:15 2013 +0100

    browser-plugin: Fix some function error returns
    
    Returning values when they weren’t supposed to.

 browser-plugin/totem-plugin-viewer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 22b1a36..c255cfc 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -484,7 +484,7 @@ totem_embedded_do_command (TotemEmbedded *embedded,
 {
        char *error_msg;
 
-       g_return_val_if_fail (command != NULL, FALSE);
+       g_return_if_fail (command != NULL);
 
        g_message ("totem_embedded_do_command: %s", command);
 
@@ -562,7 +562,7 @@ totem_embedded_launch_player (TotemEmbedded *embedded,
        GdkAppLaunchContext *ctx;
        gboolean result;
 
-       g_return_val_if_fail (embedded->app != NULL, FALSE);
+       g_return_if_fail (embedded->app != NULL);
 
        if (embedded->type == TOTEM_PLUGIN_TYPE_NARROWSPACE &&
            embedded->href_uri != NULL) {


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