[rygel-gst-0-10-media-engine] Fix error propagation.



commit 24c7dadaa4d96dbe5cb2fc0e19e911ccd35588a5
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Fri Feb 8 12:16:09 2013 +0100

    Fix error propagation.

 src/rygel-l16-transcoder.c   |    2 +-
 src/rygel-mp2ts-transcoder.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel-l16-transcoder.c b/src/rygel-l16-transcoder.c
index 7878482..16f81f2 100644
--- a/src/rygel-l16-transcoder.c
+++ b/src/rygel-l16-transcoder.c
@@ -66,7 +66,7 @@ rygel_l16_transcoder_real_add_resource (RygelTranscoder        *base,
   g_return_val_if_fail (RYGEL_TRANSCODE_MANAGER (manager), NULL);
 
   resource = RYGEL_TRANSCODER_CLASS (rygel_l16_transcoder_parent_class)->add_resource (base, didl_item, item, manager, &inner_error);
-  if (!inner_error) {
+  if (inner_error) {
     g_propagate_error (error, inner_error);
     return NULL;
   }
diff --git a/src/rygel-mp2ts-transcoder.c b/src/rygel-mp2ts-transcoder.c
index 3e3e976..657e34a 100644
--- a/src/rygel-mp2ts-transcoder.c
+++ b/src/rygel-mp2ts-transcoder.c
@@ -160,7 +160,7 @@ rygel_mp2_ts_transcoder_real_add_resource (RygelTranscoder        *base,
   g_return_val_if_fail (RYGEL_IS_TRANSCODE_MANAGER (manager), NULL);
 
   resource = RYGEL_TRANSCODER_CLASS (rygel_mp2_ts_transcoder_parent_class)->add_resource (RYGEL_TRANSCODER (self), didl_item, item, manager, &inner_error);
-  if (!inner_error) {
+  if (inner_error) {
     g_propagate_error (error, inner_error);
     return NULL;
   }


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