audiodecoder: Don't ignore ::start/stop return values
authorSebastian Dröge <sebastian@centricular.com>
Mon, 25 Aug 2014 10:14:36 +0000 (13:14 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 26 Aug 2014 06:40:11 +0000 (09:40 +0300)
gst-libs/gst/audio/gstaudiodecoder.c

index 314ce93..19a03b0 100644 (file)
@@ -2655,7 +2655,7 @@ gst_audio_decoder_stop (GstAudioDecoder * dec)
   if (ret)
     dec->priv->active = FALSE;
 
-  return TRUE;
+  return ret;
 }
 
 static gboolean
@@ -2678,7 +2678,7 @@ gst_audio_decoder_start (GstAudioDecoder * dec)
   if (ret)
     dec->priv->active = TRUE;
 
-  return TRUE;
+  return ret;
 }
 
 static void