ext/dv/gstdvdec.c: Set EOS on the element when processing an EOS event.
authorJan Schmidt <thaytan@mad.scientist.com>
Sat, 30 Oct 2004 06:44:02 +0000 (06:44 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Sat, 30 Oct 2004 06:44:02 +0000 (06:44 +0000)
Original commit message from CVS:
* ext/dv/gstdvdec.c: (gst_dvdec_handle_sink_event):
Set EOS on the element when processing an EOS event.
* ext/speex/gstspeexdec.h:
* ext/speex/gstspeexenc.h:
Only keep a const ptr to the mode
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_audio_caps_with_data),
(gst_riff_create_audio_template_caps):
Allow WMAV3, with up to 6 channels.
* gst/asfdemux/gstasfmux.c: (gst_asfmux_request_new_pad):
Don't call gst_pad_set_event_function on a sink pad.
* gst/mpegstream/gstdvddemux.c:
(gst_dvd_demux_get_subpicture_stream),
(gst_dvd_demux_set_cur_audio), (gst_dvd_demux_set_cur_subpicture):
Copy the explicit caps that were set across to the cur_* pads,
instead of trying to use a possibly non-existent negotiated caps.
Reset the type of subpicture pads to UNKNOWN after calling init_stream,
so that the caps get set.

ChangeLog
ext/dv/gstdvdec.c
ext/speex/gstspeexdec.h
ext/speex/gstspeexenc.h

index ddec267..e5ecc88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2004-10-30  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * ext/dv/gstdvdec.c: (gst_dvdec_handle_sink_event):
+         Set EOS on the element when processing an EOS event.
+       * ext/speex/gstspeexdec.h:
+       * ext/speex/gstspeexenc.h:
+         Only keep a const ptr to the mode
+       * gst-libs/gst/riff/riff-media.c:
+       (gst_riff_create_audio_caps_with_data),
+       (gst_riff_create_audio_template_caps):
+         Allow WMAV3, with up to 6 channels. 
+       * gst/asfdemux/gstasfmux.c: (gst_asfmux_request_new_pad):
+         Don't call gst_pad_set_event_function on a sink pad.
+       * gst/mpegstream/gstdvddemux.c:
+       (gst_dvd_demux_get_subpicture_stream),
+       (gst_dvd_demux_set_cur_audio), (gst_dvd_demux_set_cur_subpicture):
+          Copy the explicit caps that were set across to the cur_* pads,
+          instead of trying to use a possibly non-existent negotiated caps.
+         Reset the type of subpicture pads to UNKNOWN after calling init_stream, 
+         so that the caps get set.
+
 2004-10-29  Martin Pitt  <martin.pitt@canonical.com>
 
        Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
index 19bf308..dbfbe5b 100644 (file)
@@ -657,6 +657,9 @@ gst_dvdec_handle_sink_event (GstDVDec * dvdec)
         gst_event_ref (event);
         gst_pad_push (dvdec->audiosrcpad, GST_DATA (event));
       }
+      if (type == GST_EVENT_EOS) {
+        gst_element_set_eos (GST_ELEMENT (dvdec));
+      }
       break;
     }
     case GST_EVENT_DISCONTINUOUS:
index dcb04a2..f0cd61c 100644 (file)
@@ -57,7 +57,7 @@ struct _GstSpeexDec {
 
   void                 *state;
   SpeexStereoState stereo;
-  SpeexMode    *mode;
+  const SpeexMode * mode;
   SpeexHeader  *header;
   SpeexCallback  callback;
   SpeexBits      bits;
index dc1983b..0c00203 100644 (file)
@@ -70,7 +70,7 @@ struct _GstSpeexEnc {
 
   SpeexBits     bits;
   SpeexHeader   header;
-  SpeexMode    *speex_mode;
+  const SpeexMode      *speex_mode;
   void                 *state;
   GstSpeexMode  mode;
   GstAdapter    *adapter;