Don't unref event when calling gst_pad_event_default() (#119155)
authorDavid Schleef <ds@schleef.org>
Thu, 25 Sep 2003 00:34:57 +0000 (00:34 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 25 Sep 2003 00:34:57 +0000 (00:34 +0000)
Original commit message from CVS:
Don't unref event when calling gst_pad_event_default() (#119155)

ext/esd/esdsink.c

index f455738..2e11478 100644 (file)
@@ -280,7 +280,7 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
        gst_audio_clock_set_active (GST_AUDIO_CLOCK (esdsink->provided_clock),
            FALSE);
        gst_pad_event_default (pad, event);
-       break;
+       return;
       case GST_EVENT_DISCONTINUOUS:
       {
        gint64 value;
@@ -297,7 +297,7 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
       }
       default:
        gst_pad_event_default(pad, event);
-       break;
+       return;
     }
     gst_event_unref(event);
     return;