Fixing ticket #2291 - part 4, playlistExcutor unit test back in business
This commit is contained in:
parent
77790203a5
commit
42e168644a
1 changed files with 2 additions and 2 deletions
|
@ -187,7 +187,7 @@ my_bus_callback (GstBus *bus,
|
||||||
if(cnt<0){
|
if(cnt<0){
|
||||||
// if(cnt<5){
|
// if(cnt<5){
|
||||||
char tmp[255]={0};
|
char tmp[255]={0};
|
||||||
sprintf(tmp, "file:///tmp/campcaster/%d.mp3", cnt+1);//use when file name needed
|
sprintf(tmp, "file:///tmp/campcaster/%d.ogg", cnt+1);//use when file name needed
|
||||||
if(pContext){
|
if(pContext){
|
||||||
pContext->closeContext();
|
pContext->closeContext();
|
||||||
delete pContext;
|
delete pContext;
|
||||||
|
@ -267,7 +267,7 @@ main( int argc,
|
||||||
bin = gst_pipeline_new ("pipeline");
|
bin = gst_pipeline_new ("pipeline");
|
||||||
clock = gst_pipeline_get_clock (GST_PIPELINE (bin));
|
clock = gst_pipeline_get_clock (GST_PIPELINE (bin));
|
||||||
src = gst_element_factory_make ("audiotestsrc", "gen_audio");
|
src = gst_element_factory_make ("audiotestsrc", "gen_audio");
|
||||||
// src = gst_element_make_from_uri (GST_URI_SRC, "file:///usr/share/sounds/kubuntu-login.ogg", NULL);
|
// src = gst_element_make_from_uri (GST_URI_SRC, "file:///tmp/campcaster/login.ogg", NULL);
|
||||||
sink = gst_element_factory_make ("alsasink", "play_audio");
|
sink = gst_element_factory_make ("alsasink", "play_audio");
|
||||||
gst_bin_add_many (GST_BIN (bin), src, sink, NULL);
|
gst_bin_add_many (GST_BIN (bin), src, sink, NULL);
|
||||||
if (!gst_element_link (src, sink)) {
|
if (!gst_element_link (src, sink)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue