ext/theora/theoraenc.c (theora_enc_chain): Call gst_pad_try_set_caps instead of gst_pad_set_explicit_caps so the stre...

Original commit message from CVS:
* ext/theora/theoraenc.c (theora_enc_chain): Call
gst_pad_try_set_caps instead of gst_pad_set_explicit_caps so the
streamheader caps are set correctly.
This commit is contained in:
Johan Dahlin 2004-06-24 16:48:17 +00:00
parent 2972c88fd7
commit e8e6b9cb8d
2 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2004-06-24 Johan Dahlin <johan@gnome.org>
* ext/theora/theoraenc.c (theora_enc_chain): Call
gst_pad_try_set_caps instead of gst_pad_set_explicit_caps so the
streamheader caps are set correctly.
2004-06-24 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/vorbis/vorbisenc.c: (raw_caps_factory),
@ -254,7 +260,7 @@
2004-06-17 Johan Dahlin <johan@gnome.org>
* ext/tcp/*: Revert Zaheer changes.
* ext/tcp/*: Revert Zaheer changes, to make things actually work again.
2004-06-16 Wim Taymans <wim@fluendo.com>

View file

@ -407,11 +407,7 @@ theora_enc_chain (GstPad * pad, GstData * data)
/* negotiate with these caps */
GST_DEBUG ("here are the caps: %" GST_PTR_FORMAT, caps);
if (!gst_pad_set_explicit_caps (enc->srcpad, caps)) {
gst_caps_free (caps);
gst_data_unref (data);
return;
}
gst_pad_try_set_caps (enc->srcpad, caps);
/* push out the header buffers */
theora_push_buffer (enc, buf1);