Small fix for event cleanup
authorWim Taymans <wim.taymans@gmail.com>
Sun, 16 Jun 2002 21:58:39 +0000 (21:58 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 16 Jun 2002 21:58:39 +0000 (21:58 +0000)
Original commit message from CVS:
Small fix for event cleanup

sys/oss/gstosssink.c

index fd2b6d4..f2055fc 100644 (file)
@@ -502,7 +502,7 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf)
       case GST_EVENT_DISCONTINUOUS:
       {
        gint64 value;
-       
+
         ioctl (osssink->fd, SNDCTL_DSP_RESET);
        if (gst_event_discont_get_value (event, GST_FORMAT_TIME, &value)) {
           if (!gst_clock_handle_discont (osssink->clock, value))
@@ -510,13 +510,14 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf)
          osssink->handled = 0;
        }
        osssink->resync = TRUE;
-        return;
+        break;
       }
       default:
        gst_pad_event_default (pad, event);
         return;
     }
     gst_event_free (event);
+    return;
   }
 
   if (!osssink->bps) {