From: Stefan Sauer Date: Mon, 28 Nov 2011 09:55:39 +0000 (+0100) Subject: alsasrc: style fix X-Git-Tag: 1.19.3~511^2~6555^2~296 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f70ca6d4cbfd2b672dcc7215814bf6b39ce2c3f8;p=platform%2Fupstream%2Fgstreamer.git alsasrc: style fix Use timestamp==0 instead of mixing it with !timestamp style checks. --- diff --git a/ext/alsa/gstalsasrc.c b/ext/alsa/gstalsasrc.c index 6a50860..e2ca602 100644 --- a/ext/alsa/gstalsasrc.c +++ b/ext/alsa/gstalsasrc.c @@ -278,12 +278,12 @@ gst_alsasrc_get_timestamp (GstAlsaSrc * src) /* get high resolution time stamp from driver */ snd_pcm_status_get_htstamp (status, &htstamp); timestamp = GST_TIMESPEC_TO_TIME (htstamp); - if (!timestamp) { + if (timestamp == 0) { GST_INFO_OBJECT (src, "This alsa source does support high resolution timestamps"); snd_pcm_status_get_tstamp (status, &tstamp); timestamp = GST_TIMEVAL_TO_TIME (tstamp); - if (!timestamp) { + if (timestamp == 0) { GST_INFO_OBJECT (src, "This alsa source does support low resolution timestamps"); timestamp = gst_util_get_timestamp ();