mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-01 17:31:10 +00:00
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
This commit is contained in:
parent
9abac1c3f9
commit
61281d0117
1 changed files with 2 additions and 1 deletions
|
@ -55,12 +55,13 @@ main (int argc, char *argv[])
|
||||||
"rate", GST_PROPS_INT (44100),
|
"rate", GST_PROPS_INT (44100),
|
||||||
"width", GST_PROPS_INT (16),
|
"width", GST_PROPS_INT (16),
|
||||||
"depth", GST_PROPS_INT (16),
|
"depth", GST_PROPS_INT (16),
|
||||||
"law", GST_PROPS_INT (1),
|
"law", GST_PROPS_INT (0),
|
||||||
"signed", GST_PROPS_BOOLEAN (TRUE),
|
"signed", GST_PROPS_BOOLEAN (TRUE),
|
||||||
"channels", GST_PROPS_INT (1)
|
"channels", GST_PROPS_INT (1)
|
||||||
);
|
);
|
||||||
caps->fixed = TRUE;
|
caps->fixed = TRUE;
|
||||||
g_assert (caps != NULL);
|
g_assert (caps != NULL);
|
||||||
|
gst_element_set_state (pipeline, GST_STATE_READY);
|
||||||
g_print ("Setting caps on fakesrc's src pad\n");
|
g_print ("Setting caps on fakesrc's src pad\n");
|
||||||
if (! (gst_pad_try_set_caps (gst_element_get_pad (src, "src"), caps)))
|
if (! (gst_pad_try_set_caps (gst_element_get_pad (src, "src"), caps)))
|
||||||
g_print ("Could not set caps !\n");
|
g_print ("Could not set caps !\n");
|
||||||
|
|
Loading…
Reference in a new issue