From: Wim Taymans Date: Tue, 19 Feb 2002 20:35:42 +0000 (+0000) Subject: Always bring the elements to READY before trying to do capsnego. fix the caps as... X-Git-Tag: 1.19.3~509^2~1916^2~194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90386dd4334b94ee630814dfeba464f0e0929a9e;p=platform%2Fupstream%2Fgstreamer.git Always bring the elements to READY before trying to do capsnego. fix the caps as lame doesn't accept law==1 Original commit message from CVS: Always bring the elements to READY before trying to do capsnego. fix the caps as lame doesn't accept law==1 --- diff --git a/ext/lame/test-lame.c b/ext/lame/test-lame.c index 1d656cd..a8bfdea 100644 --- a/ext/lame/test-lame.c +++ b/ext/lame/test-lame.c @@ -55,12 +55,13 @@ main (int argc, char *argv[]) "rate", GST_PROPS_INT (44100), "width", GST_PROPS_INT (16), "depth", GST_PROPS_INT (16), - "law", GST_PROPS_INT (1), + "law", GST_PROPS_INT (0), "signed", GST_PROPS_BOOLEAN (TRUE), "channels", GST_PROPS_INT (1) ); caps->fixed = TRUE; g_assert (caps != NULL); + gst_element_set_state (pipeline, GST_STATE_READY); g_print ("Setting caps on fakesrc's src pad\n"); if (! (gst_pad_try_set_caps (gst_element_get_pad (src, "src"), caps))) g_print ("Could not set caps !\n");