rtspsrc: don't confuse return values
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 5 Jan 2011 17:32:58 +0000 (18:32 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 5 Jan 2011 17:33:41 +0000 (18:33 +0100)
Return a return value of the right type.

gst/rtsp/gstrtspsrc.c

index 92c4efc..a507d4e 100644 (file)
@@ -4397,7 +4397,7 @@ server_eof:
     GST_ELEMENT_WARNING (src, RESOURCE, READ, (NULL),
         ("The server closed the connection."));
     gst_rtsp_message_unset (response);
-    return GST_FLOW_UNEXPECTED;
+    return res;
   }
 }