rtspsrc: Trivial fix to check correct condition
authorVineeth TM <vineeth.tm@samsung.com>
Fri, 21 Aug 2015 07:29:16 +0000 (16:29 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 21 Aug 2015 08:06:57 +0000 (11:06 +0300)
When checking for describe method, because of missing parentheses, wrong
condition is being checked, which will result in wrong behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=753912

gst/rtsp/gstrtspsrc.c

index 4cdd335..60b0e37 100644 (file)
@@ -7214,7 +7214,7 @@ restart:
   }
 
   /* it could be that the DESCRIBE method was not implemented */
-  if (!src->methods & GST_RTSP_DESCRIBE)
+  if (!(src->methods & GST_RTSP_DESCRIBE))
     goto no_describe;
 
   /* check if reply is SDP */