From 3deabb351e2b86c844b161c5faa8d92e4ddf4237 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 7 Jun 2003 00:17:53 +0000 Subject: [PATCH] Remove NEW_MEDIA from plugins Original commit message from CVS: Remove NEW_MEDIA from plugins --- ext/libpng/gstpngenc.c | 5 +++-- sys/oss/gstosssink.c | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ext/libpng/gstpngenc.c b/ext/libpng/gstpngenc.c index 176afd1b1e..9384505061 100644 --- a/ext/libpng/gstpngenc.c +++ b/ext/libpng/gstpngenc.c @@ -236,8 +236,9 @@ gst_pngenc_chain (GstPad *pad, GstBuffer *buf) png_destroy_write_struct (&pngenc->png_struct_ptr, (png_infopp) NULL); gst_pad_push (pngenc->srcpad, pngenc->buffer_out); - /* send NEW MEDIA event, since a frame has been pushed out */ - event = gst_event_new (GST_EVENT_NEW_MEDIA); + + /* send EOS event, since a frame has been pushed out */ + event = gst_event_new (GST_EVENT_EOS); gst_pad_push (pngenc->srcpad, GST_BUFFER (event)); gst_buffer_unref (buf); diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index f8edd5a1f8..7bd4c9886e 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -348,9 +348,6 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf) gst_oss_clock_set_active (osssink->provided_clock, FALSE); gst_pad_event_default (pad, event); return; - case GST_EVENT_NEW_MEDIA: - g_print ("new media\n"); - break; case GST_EVENT_DISCONTINUOUS: { gint64 value;