Hi Freepine,

Thanks a lot for your inputs.
I am able to disable the audio and only video is playing fine.

Regards
APT


On Mon, May 11, 2009 at 11:53 AM, Freepine <freep...@gmail.com> wrote:

> Did you get the crash log? IMO, if you don't add audio sink into pv player
> engine, then it will not setup audio stream pipeline.
> Below is the patch I just tried in my environment, and it works:)
>
> diff --git a/android/playerdriver.cpp b/android/playerdriver.cpp
> index f5be2c4..95e303d 100644
> --- a/android/playerdriver.cpp
> +++ b/android/playerdriver.cpp
> @@ -501,6 +501,7 @@ void PlayerDriver::Run()
>
>          case PlayerCommand::PLAYER_SET_AUDIO_SINK:
>              handleSetAudioSink(static_cast<PlayerSetAudioSink*>(command));
> +            FinishSyncCommand(command);
>              break;
>
>          case PlayerCommand::PLAYER_INIT:
> @@ -781,8 +782,8 @@ void
> PlayerDriver::handleSetAudioSink(PlayerSetAudioSink* command)
>      ((PVPlayerDataSinkPVMFNode *)mAudioSink)->SetDataSinkNode(mAudioNode);
>      ((PVPlayerDataSinkPVMFNode
> *)mAudioSink)->SetDataSinkFormatType((char*)PVMF_MIME_PCM16);
>
> -    OSCL_TRY(error, mPlayer->AddDataSink(*mAudioSink, command));
> -    OSCL_FIRST_CATCH_ANY(error, commandFailed(command));
> +    //OSCL_TRY(error, mPlayer->AddDataSink(*mAudioSink, command));
> +    //OSCL_FIRST_CATCH_ANY(error, commandFailed(command));
>  }
>
>  void PlayerDriver::handlePrepare(PlayerPrepare* command)
>
>
> On Mon, May 11, 2009 at 12:10 PM, MMF <android...@gmail.com> wrote:
>
>> Hi Freepine,
>>
>> Thanks for the suggestion, but this did not work.
>> In fact, the emulator crashed :(
>> I suppose there has to be some way (by setting some configuration) while
>> creating the PV player pipeline itself.
>>
>> Thanks
>> APT
>>
>>
>> On Sun, May 10, 2009 at 3:38 PM, Freepine <freep...@gmail.com> wrote:
>>
>>> You can remove the statement of adding audio sink in playerdriver.cpp and
>>> try again. (line 642, 
>>> PlayerDriver::handleSetAudioSink<http://android.git.kernel.org/?p=platform/external/opencore.git;a=blob;f=android/playerdriver.cpp;h=1a9130737f2ae06385f2ec6b15d95cce311e6e31;hb=6b31782f62c033186ad890719195f3c04e0a5f25>
>>>  )
>>>
>>>
>>> On Sun, May 10, 2009 at 2:50 PM, MMF <android...@gmail.com> wrote:
>>>
>>>> Hi Friends,
>>>>
>>>> I want to disable the audio path while playing a .3gp file having both
>>>> audio and video.
>>>> Is there any setting/parameter/configuration available in OpenCORE to
>>>> disable the audio path in PVPlayer?
>>>>
>>>> Thanks and Regards
>>>> APT
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to