timidity: Fix flag checking
authorEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 20 Jun 2012 09:02:03 +0000 (11:02 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 20 Jun 2012 10:37:38 +0000 (11:37 +0100)
ext/timidity/gsttimidity.c

index 89e592e..c3dfa22 100644 (file)
@@ -407,7 +407,7 @@ gst_timidity_src_event (GstPad * pad, GstEvent * event)
       gst_segment_set_seek (timidity->o_segment, rate, dst_format, flags,
           start_type, start, stop_type, stop, &update);
 
-      if ((flags && GST_SEEK_FLAG_SEGMENT) == GST_SEEK_FLAG_SEGMENT) {
+      if (flags & GST_SEEK_FLAG_SEGMENT) {
         GST_DEBUG_OBJECT (timidity, "received segment seek %d, %d",
             (gint) start_type, (gint) stop_type);
       } else {