client: compare booleans, not pointers to them

This commit is contained in:
Mathieu Duponchelle 2018-11-07 00:32:29 +01:00
parent f31f79f60e
commit b9cc3e867a

View 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;