1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wfdctl: disable audio encoding temparary

This commit is contained in:
Derek Dai 2017-03-16 16:38:01 +08:00
parent 6d1ee10689
commit a2e16ff348
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -638,29 +638,29 @@ static int wfd_out_session_create_pipeline(struct wfd_session *s)
*tmp ++ = NULL; *tmp ++ = NULL;
} }
if(*os->audio_dev) { /*if(*os->audio_dev) {*/
for(tmp = pipeline_desc; *tmp; ++tmp); /*for(tmp = pipeline_desc; *tmp; ++tmp);*/
*tmp ++ = "pulsesrc"; /**tmp ++ = "pulsesrc";*/
*tmp ++ = "do-timestamp=true"; /**tmp ++ = "do-timestamp=true";*/
*tmp ++ = "client-name=miraclecast"; /**tmp ++ = "client-name=miraclecast";*/
*tmp ++ = "device="; /**tmp ++ = "device=";*/
*tmp ++ = quote_str(os->audio_dev, audio_dev, sizeof(audio_dev)); /**tmp ++ = quote_str(os->audio_dev, audio_dev, sizeof(audio_dev));*/
*tmp ++ = "!"; /**tmp ++ = "!";*/
*tmp ++ = "audioconvert"; /**tmp ++ = "audioconvert";*/
*tmp ++ = "!"; /**tmp ++ = "!";*/
*tmp ++ = "audio/x-raw,"; /**tmp ++ = "audio/x-raw,";*/
*tmp ++ = "rate=48000,"; /**tmp ++ = "rate=48000,";*/
*tmp ++ = "channels=2"; /**tmp ++ = "channels=2";*/
*tmp ++ = "!"; /**tmp ++ = "!";*/
*tmp ++ = "avenc_aac"; /**tmp ++ = "avenc_aac";*/
*tmp ++ = "!"; /**tmp ++ = "!";*/
*tmp ++ = "queue"; /**tmp ++ = "queue";*/
*tmp ++ = "max-size-buffers=0"; /*[>*tmp ++ = "max-size-buffers=0";<]*/
*tmp ++ = "max-size-bytes=0"; /*[>*tmp ++ = "max-size-bytes=0";<]*/
*tmp ++ = "!"; /**tmp ++ = "!";*/
*tmp ++ = "muxer."; /**tmp ++ = "muxer.";*/
*tmp ++ = NULL; /**tmp ++ = NULL;*/
} /*}*/
/* bad pratice, but since we are in the same process, /* bad pratice, but since we are in the same process,
I think this is the only way to do it */ I think this is the only way to do it */