diff -r 1fa3fb47b1e3 -r c2e43643db4c khronosfws/openmax_al/src/mmf_adaptation/xastreaminformationitfadaptationmmf.c --- a/khronosfws/openmax_al/src/mmf_adaptation/xastreaminformationitfadaptationmmf.c Wed Aug 18 10:17:22 2010 +0300 +++ b/khronosfws/openmax_al/src/mmf_adaptation/xastreaminformationitfadaptationmmf.c Thu Sep 02 20:58:01 2010 +0300 @@ -39,7 +39,7 @@ if (!adaptCtx || (adaptCtx->ctxId != XAMediaPlayerAdaptation)) { DEBUG_ERR("XA_RESULT_PARAMETER_INVALID"); - DEBUG_API("-mmfContext, numStreams); - DEBUG_API("- numStreams) { DEBUG_ERR("XA_RESULT_PARAMETER_INVALID"); - DEBUG_API("-codecId = codecId; + streamInfo->channels = channels; + streamInfo->sampleRate = sampleRate; + streamInfo->bitRate = bitRate; + streamInfo->langCountry[0] = '\0'; + streamInfo->duration = duration; + } + break; +/* + case XA_DOMAINTYPE_MIDI: { - case XA_DOMAINTYPE_AUDIO: - { - XAAudioStreamInformation* streamInfo = - (XAAudioStreamInformation*) info; - DEBUG_INFO("Assigning values for XAAudioStreamInformation"); - streamInfo->codecId = codecId; - streamInfo->channels = channels; - streamInfo->sampleRate = sampleRate; - streamInfo->bitRate = bitRate; - streamInfo->langCountry[0] = '\0'; - streamInfo->duration = duration; - } - break; - case XA_DOMAINTYPE_MIDI: - { - XAMIDIStreamInformation* streamInfo = - (XAMIDIStreamInformation*) info; - DEBUG_INFO("Assigning values for XAMIDIStreamInformation"); - /*currently there is no way to get these information from gstreamer*/ - streamInfo->channels = XA_MIDI_UNKNOWN; - streamInfo->tracks = XA_MIDI_UNKNOWN; - streamInfo->bankType = XA_MIDIBANK_DEVICE; - /*streamInfo->bitRate = 0;*/ - streamInfo->langCountry[0] = '\0'; - streamInfo->duration = duration; - } - break; - case XA_DOMAINTYPE_VIDEO: - { - XAVideoStreamInformation* streamInfo = - (XAVideoStreamInformation*) info; - DEBUG_INFO("Assigning values for XAVideoStreamInformation"); - streamInfo->codecId = codecId; - streamInfo->width = width; - streamInfo->height = height; - streamInfo->bitRate = bitRate; - streamInfo->duration = duration; - streamInfo->frameRate = frameRate; - } - break; - case XA_DOMAINTYPE_IMAGE: - { - XAImageStreamInformation* streamInfo = - (XAImageStreamInformation*) info; - DEBUG_INFO("Assigning values for XAImageStreamInformation"); - streamInfo->codecId = codecId; - streamInfo->width = width; - streamInfo->height = height; - streamInfo->presentationDuration = duration; - } - break; - default: - break; - }; - } /*if ( ret == XA_RESULT_SUCCESS)*/ - - DEBUG_API("-channels = XA_MIDI_UNKNOWN; + streamInfo->tracks = XA_MIDI_UNKNOWN; + streamInfo->bankType = XA_MIDIBANK_DEVICE;*/ + /*streamInfo->bitRate = 0;*/ +/* streamInfo->langCountry[0] = '\0'; + streamInfo->duration = duration; + } + break; +*/ + case XA_DOMAINTYPE_VIDEO: + { + XAVideoStreamInformation* streamInfo = + (XAVideoStreamInformation*) info; + DEBUG_INFO("Assigning values for XAVideoStreamInformation"); + streamInfo->codecId = codecId; + streamInfo->width = width; + streamInfo->height = height; + streamInfo->bitRate = bitRate; + streamInfo->duration = duration; + streamInfo->frameRate = frameRate; + } + break; +/* + case XA_DOMAINTYPE_IMAGE: + { + XAImageStreamInformation* streamInfo = + (XAImageStreamInformation*) info; + DEBUG_INFO("Assigning values for XAImageStreamInformation"); + streamInfo->codecId = codecId; + streamInfo->width = width; + streamInfo->height = height; + streamInfo->presentationDuration = duration; + } + break; + default: + break; +*/ + }; + DEBUG_API("<-XAStreamInformationItfAdaptMMF_QueryStreamInformation"); return ret; } @@ -295,7 +304,7 @@ != XAMediaPlayerAdaptation)) { DEBUG_ERR("XA_RESULT_PARAMETER_INVALID"); - DEBUG_API("- numStreams) { DEBUG_ERR("XA_RESULT_PARAMETER_INVALID"); - DEBUG_API("-ctxId == XAMDAdaptation) { DEBUG_ERR("XA_RESULT_PRECONDITIONS_VIOLATED"); - DEBUG_API("-ctxId != XAMediaPlayerAdaptation)) { DEBUG_ERR("XA_RESULT_PARAMETER_INVALID"); - DEBUG_API("-ctxId == XAMDAdaptation) { DEBUG_ERR("XA_RESULT_PRECONDITIONS_VIOLATED"); - DEBUG_API("- numStreams) { DEBUG_ERR("XA_RESULT_PARAMETER_INVALID"); - DEBUG_API("-XAStreamInformationItfAdaptMMF_SetActiveStream"); return ret; } -