client: compare booleans, not pointers to them
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 6 Nov 2018 23:32:29 +0000 (00:32 +0100)
committerMathieu Duponchelle <mathieu@centricular.com>
Tue, 4 Jun 2019 12:32:51 +0000 (14:32 +0200)
gst/rtsp-server/rtsp-client.c

index d3c484b..55c2da8 100644 (file)
@@ -1781,7 +1781,7 @@ parse_scale_and_speed (GstRTSPClient * client, GstRTSPContext * ctx,
   if (status != GST_RTSP_STS_OK)
     return status;
 
-  if (scale_present) {
+  if (*scale_present) {
     GST_DEBUG ("got Scale %f", scale);
     if (scale == 0)
       goto bad_scale_value;
@@ -1795,7 +1795,7 @@ parse_scale_and_speed (GstRTSPClient * client, GstRTSPContext * ctx,
   if (status != GST_RTSP_STS_OK)
     return status;
 
-  if (speed_present) {
+  if (*speed_present) {
     GST_DEBUG ("got Speed %f", speed);
     if (speed <= 0)
       goto bad_speed_value;