From 6d167abdfa77108f3c98aae98b04e0225f570b85 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 28 Nov 2011 10:55:39 +0100 Subject: [PATCH] Revert "alsasrc: style fix" This reverts commit f70ca6d4cbfd2b672dcc7215814bf6b39ce2c3f8. --- ext/alsa/gstalsasrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/alsa/gstalsasrc.c b/ext/alsa/gstalsasrc.c index 096c58b5a6..207819707d 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 == 0) { + if (!timestamp) { 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 == 0) { + if (!timestamp) { GST_INFO_OBJECT (src, "This alsa source does support low resolution timestamps"); timestamp = gst_util_get_timestamp ();