19
|
1 |
/**
|
|
2 |
* src\adaptation\XAStreamInformationItfAdaptation.c
|
|
3 |
* Part of OpenMAX AL Implementation
|
|
4 |
* Copyright (c) 2009 Nokia Inc.
|
|
5 |
*
|
|
6 |
* This file contains implementation of XAStreamInformationItfAdaptation
|
|
7 |
**/
|
|
8 |
|
|
9 |
#include "xadebug.h"
|
|
10 |
#include "xathreadsafety.h"
|
|
11 |
#include "xamediaplayeradaptctxmmf.h"
|
|
12 |
#include "xastreaminformationitfadaptationmmf.h"
|
|
13 |
#include "xaplayitfadaptationmmf.h"
|
|
14 |
#include "cmmfbackendengine.h"
|
|
15 |
/*
|
|
16 |
* XAStreamInformationItfAdaptMMF_QueryMediaContainerInformation(
|
|
17 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
18 |
* XAMediaContainerInformation *info);
|
|
19 |
* Description: Obtains media container information
|
|
20 |
*/
|
|
21 |
XAresult XAStreamInformationItfAdaptMMF_QueryMediaContainerInformation(
|
|
22 |
XAAdaptationBaseCtx *adaptCtx,
|
|
23 |
XAuint32 *containerType,
|
|
24 |
XAmillisecond *mediaDuration,
|
|
25 |
XAuint32 *numStreams)
|
|
26 |
{
|
|
27 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
28 |
XADataSource *xaDataSource = NULL;
|
|
29 |
|
|
30 |
DEBUG_API("->XAStreamInformationItfAdaptMMF_QueryMediaContainerInformation");
|
|
31 |
/* Both Media Player and Metadata Extractor objec uses the same ctxId */
|
|
32 |
if( !adaptCtx ||
|
|
33 |
(adaptCtx->ctxId != XAMediaPlayerAdaptation) )
|
|
34 |
/* !((adaptCtx->ctxId == XAMediaPlayerAdaptation) ||
|
|
35 |
(adaptCtx->ctxId == XAMDAdaptation) ) )
|
|
36 |
*/
|
|
37 |
{
|
|
38 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
39 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryMediaContainerInformation");
|
|
40 |
return XA_RESULT_PARAMETER_INVALID;
|
|
41 |
}
|
|
42 |
|
|
43 |
/* Initialize to unspecified */
|
|
44 |
*containerType = XA_CONTAINERTYPE_UNSPECIFIED;
|
|
45 |
xaDataSource = ((XAMediaPlayerAdaptationMMFCtx*) adaptCtx)->xaSource;
|
|
46 |
/* DEBUG_INFO("Obtained handle to xaDataSource");*/
|
|
47 |
if ( xaDataSource &&
|
|
48 |
xaDataSource->pFormat &&
|
|
49 |
( (*(XAuint32*)xaDataSource->pFormat ) == XA_DATAFORMAT_MIME) )
|
|
50 |
{
|
|
51 |
*containerType = ((XADataFormat_MIME*)(xaDataSource->pFormat))->containerType;
|
|
52 |
DEBUG_INFO_A1("Container type obtained from xaDataSource->pFormat is [%u]", (unsigned int)(*containerType));
|
|
53 |
}
|
|
54 |
else
|
|
55 |
{
|
|
56 |
DEBUG_INFO("Container type unspecified");
|
|
57 |
}
|
|
58 |
|
|
59 |
/* Get media duration */
|
|
60 |
ret = XAPlayItfAdaptMMF_GetDuration(adaptCtx, mediaDuration);
|
|
61 |
if ( ret != XA_RESULT_SUCCESS )
|
|
62 |
return ret;
|
|
63 |
|
|
64 |
ret = mmf_streaminformationitf_get_numstreams(((XAMediaPlayerAdaptationMMFCtx*)adaptCtx)->mmfContext,
|
|
65 |
numStreams);
|
|
66 |
|
|
67 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryMediaContainerInformation");
|
|
68 |
return ret;
|
|
69 |
}
|
|
70 |
|
|
71 |
/*
|
|
72 |
* XAresult XAStreamInformationItfAdaptMMF_QueryStreamType(
|
|
73 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
74 |
* XAuint32 streamIndex,
|
|
75 |
* XAuint32 *domain)
|
|
76 |
* Description: Obtains stream type information
|
|
77 |
*/
|
|
78 |
XAresult XAStreamInformationItfAdaptMMF_QueryStreamType(
|
|
79 |
XAAdaptationBaseCtx *adaptCtx,
|
|
80 |
XAuint32 streamIndex,
|
|
81 |
XAuint32 *domain)
|
|
82 |
{
|
|
83 |
XAresult ret;
|
|
84 |
XAuint32 numStreams;
|
|
85 |
XADataSource *xaDataSource = NULL;
|
|
86 |
|
|
87 |
|
|
88 |
DEBUG_API("->XAStreamInformationItfAdaptMMF_QueryStreamType");
|
|
89 |
|
|
90 |
ret = mmf_streaminformationitf_get_numstreams(((XAMediaPlayerAdaptationMMFCtx*)adaptCtx)->mmfContext,
|
|
91 |
&numStreams);
|
|
92 |
if (ret != XA_RESULT_SUCCESS)
|
|
93 |
{
|
|
94 |
DEBUG_ERR_A1("XA_RESULT_[0x%x]", (unsigned int)ret);
|
|
95 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamType");
|
|
96 |
return ret;
|
|
97 |
}
|
|
98 |
|
|
99 |
/* validate stream index */
|
|
100 |
if ( streamIndex > numStreams )
|
|
101 |
{
|
|
102 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
103 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamType");
|
|
104 |
return XA_RESULT_PARAMETER_INVALID;
|
|
105 |
}
|
|
106 |
|
|
107 |
/* if format type is raw image */
|
|
108 |
xaDataSource = ((XAMediaPlayerAdaptationMMFCtx*) adaptCtx)->xaSource;
|
|
109 |
if( xaDataSource->pFormat &&
|
|
110 |
( (*(XAuint32*)xaDataSource->pFormat ) == XA_DATAFORMAT_RAWIMAGE) )
|
|
111 |
{
|
|
112 |
*domain = XA_DOMAINTYPE_IMAGE;
|
|
113 |
return XA_RESULT_SUCCESS;
|
|
114 |
}
|
|
115 |
else
|
|
116 |
{
|
|
117 |
ret = mmf_streaminformationitf_get_streaminfo(((XAMediaPlayerAdaptationMMFCtx*)adaptCtx)->mmfContext,
|
|
118 |
streamIndex,domain);
|
|
119 |
}
|
|
120 |
|
|
121 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamType");
|
|
122 |
return ret;
|
|
123 |
}
|
|
124 |
|
|
125 |
/*
|
|
126 |
* XAresult XAStreamInformationItfAdaptMMF_QueryStreamInformation(
|
|
127 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
128 |
* XAuint32 streamIndex,
|
|
129 |
* void * info)
|
|
130 |
* Description: Obtains stream information
|
|
131 |
*/
|
|
132 |
XAresult XAStreamInformationItfAdaptMMF_QueryStreamInformation(
|
|
133 |
XAAdaptationBaseCtx *adaptCtx,
|
|
134 |
XAuint32 streamIndex,
|
|
135 |
void * info)
|
|
136 |
{
|
|
137 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
138 |
XAuint32 domain;
|
|
139 |
XAuint32 codecId;
|
|
140 |
XAuint32 channels;
|
|
141 |
XAmilliHertz sampleRate;
|
|
142 |
XAuint32 bitRate;
|
|
143 |
XAmillisecond duration;
|
|
144 |
XAuint32 width;
|
|
145 |
XAuint32 height;
|
|
146 |
XAuint32 frameRate;
|
|
147 |
void* mmfctx;
|
|
148 |
|
|
149 |
mmfctx = ((XAMediaPlayerAdaptationMMFCtx*)adaptCtx)->mmfContext;
|
|
150 |
/* GstElement *codecbin = NULL;*/
|
|
151 |
|
|
152 |
DEBUG_API("->XAStreamInformationItfAdaptMMF_QueryStreamInformation");
|
|
153 |
|
|
154 |
/* stream index is validated in XAStreamInformationItfAdaptMMF_QueryStreamType */
|
|
155 |
ret = XAStreamInformationItfAdaptMMF_QueryStreamType(
|
|
156 |
adaptCtx, streamIndex, &domain);
|
|
157 |
|
|
158 |
if (ret != XA_RESULT_SUCCESS)
|
|
159 |
{
|
|
160 |
DEBUG_ERR_A1("XA_RESULT_[0x%x]", (unsigned int)ret);
|
|
161 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamInformation");
|
|
162 |
return ret;
|
|
163 |
}
|
|
164 |
if ( domain == XA_DOMAINTYPE_UNKNOWN )
|
|
165 |
{
|
|
166 |
DEBUG_ERR("XA_RESULT_CONTENT_UNSUPPORTED");
|
|
167 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamInformation");
|
|
168 |
return XA_RESULT_CONTENT_UNSUPPORTED;
|
|
169 |
}
|
|
170 |
|
|
171 |
switch(domain)
|
|
172 |
{
|
|
173 |
case XA_DOMAINTYPE_AUDIO:
|
|
174 |
DEBUG_INFO("Getting Audio Stream Info from Backend Engine");
|
|
175 |
ret = mmf_get_channels(mmfctx, &channels);
|
|
176 |
ret = mmf_get_samplerate(mmfctx, &sampleRate);
|
|
177 |
ret = mmf_get_bitrate(mmfctx, &bitRate);
|
|
178 |
ret = mmf_get_codec_id(mmfctx, &codecId);
|
|
179 |
break;
|
|
180 |
case XA_DOMAINTYPE_VIDEO:
|
|
181 |
DEBUG_INFO("Getting Video Stream Info from Backend Engine");
|
|
182 |
ret = mmf_get_bitrate(mmfctx, &bitRate);
|
|
183 |
ret = mmf_get_codec_id(mmfctx, &codecId);
|
|
184 |
ret = mmf_streaminformationitf_get_videoframesize(mmfctx, &height, &width, &frameRate);
|
|
185 |
break;
|
|
186 |
case XA_DOMAINTYPE_IMAGE:
|
|
187 |
DEBUG_INFO("Getting Image Stream Info from SrcPad");
|
|
188 |
break;
|
|
189 |
default:
|
|
190 |
break;
|
|
191 |
};
|
|
192 |
|
|
193 |
|
|
194 |
if ( ret == XA_RESULT_SUCCESS)
|
|
195 |
{
|
|
196 |
DEBUG_INFO("Getting media duration");
|
|
197 |
ret = XAPlayItfAdaptMMF_GetDuration(adaptCtx, &duration);
|
|
198 |
}
|
|
199 |
|
|
200 |
/* Now assign properties to data structure */
|
|
201 |
if ( ret == XA_RESULT_SUCCESS)
|
|
202 |
{
|
|
203 |
switch(domain)
|
|
204 |
{
|
|
205 |
case XA_DOMAINTYPE_AUDIO:
|
|
206 |
{
|
|
207 |
XAAudioStreamInformation* streamInfo = (XAAudioStreamInformation*)info;
|
|
208 |
DEBUG_INFO("Assigning values for XAAudioStreamInformation");
|
|
209 |
streamInfo->codecId = codecId;
|
|
210 |
streamInfo->channels = channels;
|
|
211 |
streamInfo->sampleRate = sampleRate;
|
|
212 |
streamInfo->bitRate = bitRate;
|
|
213 |
streamInfo->langCountry[0] = '\0';
|
|
214 |
streamInfo->duration = duration;
|
|
215 |
}
|
|
216 |
break;
|
|
217 |
case XA_DOMAINTYPE_MIDI:
|
|
218 |
{
|
|
219 |
XAMIDIStreamInformation* streamInfo = (XAMIDIStreamInformation*)info;
|
|
220 |
DEBUG_INFO("Assigning values for XAMIDIStreamInformation");
|
|
221 |
/*currently there is no way to get these information from gstreamer*/
|
|
222 |
streamInfo->channels = XA_MIDI_UNKNOWN;
|
|
223 |
streamInfo->tracks = XA_MIDI_UNKNOWN;
|
|
224 |
streamInfo->bankType = XA_MIDIBANK_DEVICE;
|
|
225 |
/*streamInfo->bitRate = 0;*/
|
|
226 |
streamInfo->langCountry[0] = '\0';
|
|
227 |
streamInfo->duration = duration;
|
|
228 |
}
|
|
229 |
break;
|
|
230 |
case XA_DOMAINTYPE_VIDEO:
|
|
231 |
{
|
|
232 |
XAVideoStreamInformation* streamInfo = (XAVideoStreamInformation*)info;
|
|
233 |
DEBUG_INFO("Assigning values for XAVideoStreamInformation");
|
|
234 |
streamInfo->codecId = codecId;
|
|
235 |
streamInfo->width = width;
|
|
236 |
streamInfo->height = height;
|
|
237 |
streamInfo->bitRate = bitRate;
|
|
238 |
streamInfo->duration = duration;
|
|
239 |
streamInfo->frameRate = frameRate;
|
|
240 |
}
|
|
241 |
break;
|
|
242 |
case XA_DOMAINTYPE_IMAGE:
|
|
243 |
{
|
|
244 |
XAImageStreamInformation* streamInfo = (XAImageStreamInformation*)info;
|
|
245 |
DEBUG_INFO("Assigning values for XAImageStreamInformation");
|
|
246 |
streamInfo->codecId = codecId;
|
|
247 |
streamInfo->width = width;
|
|
248 |
streamInfo->height = height;
|
|
249 |
streamInfo->presentationDuration = duration;
|
|
250 |
}
|
|
251 |
break;
|
|
252 |
default:
|
|
253 |
break;
|
|
254 |
};
|
|
255 |
} /*if ( ret == XA_RESULT_SUCCESS)*/
|
|
256 |
|
|
257 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamInformation");
|
|
258 |
return ret;
|
|
259 |
}
|
|
260 |
|
|
261 |
/*
|
|
262 |
* XAresult XAStreamInformationItfAdaptMMF_QueryStreamName(
|
|
263 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
264 |
* XAuint32 streamIndex,
|
|
265 |
* XAuint16 * pNameSize,
|
|
266 |
* XAchar * pName)
|
|
267 |
* Description: Obtains stream name
|
|
268 |
*/
|
|
269 |
XAresult XAStreamInformationItfAdaptMMF_QueryStreamName(
|
|
270 |
XAAdaptationBaseCtx *adaptCtx,
|
|
271 |
XAuint32 streamIndex,
|
|
272 |
XAuint16 * pNameSize,
|
|
273 |
XAchar * pName)
|
|
274 |
{
|
|
275 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
276 |
XAuint32 numStreams;
|
|
277 |
|
|
278 |
DEBUG_API("->XAStreamInformationItfAdaptMMF_QueryStreamName");
|
|
279 |
/* Both Media Player and Metadata Extractor objec uses the same ctxId */
|
|
280 |
if( !adaptCtx ||
|
|
281 |
(adaptCtx->ctxId != XAMediaPlayerAdaptation) )
|
|
282 |
{
|
|
283 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
284 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamName");
|
|
285 |
return XA_RESULT_PARAMETER_INVALID;
|
|
286 |
}
|
|
287 |
|
|
288 |
/* validate stream index */
|
|
289 |
ret = mmf_streaminformationitf_get_numstreams(((XAMediaPlayerAdaptationMMFCtx*)adaptCtx)->mmfContext,
|
|
290 |
&numStreams);
|
|
291 |
if (ret != XA_RESULT_SUCCESS)
|
|
292 |
{
|
|
293 |
DEBUG_ERR_A1("XA_RESULT_[0x%x]", (unsigned int)ret);
|
|
294 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamName");
|
|
295 |
return ret;
|
|
296 |
}
|
|
297 |
|
|
298 |
/* validate stream index */
|
|
299 |
if ( streamIndex > numStreams )
|
|
300 |
{
|
|
301 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
302 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamName");
|
|
303 |
return XA_RESULT_PARAMETER_INVALID;
|
|
304 |
}
|
|
305 |
|
|
306 |
/* TODO there is no straight way to retreive stream name from mmf*/
|
|
307 |
/*XAuint16 inputNameSize = *pNameSize;*/
|
|
308 |
*pNameSize = 0; /* Replace this with actual size*/
|
|
309 |
if ( pName )
|
|
310 |
{
|
|
311 |
/* TODO copy stream name into pName taking into account inputNameSize */
|
|
312 |
}
|
|
313 |
|
|
314 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryStreamName");
|
|
315 |
return ret;
|
|
316 |
}
|
|
317 |
|
|
318 |
/*
|
|
319 |
* XAresult XAStreamInformationItfAdaptMMF_QueryActiveStreams(
|
|
320 |
* XAAdaptationBaseCtx *adaptCtx,
|
|
321 |
* XAuint32 *numStreams,
|
|
322 |
* XAboolean *activeStreams);
|
|
323 |
* Description: Obtains active stream information
|
|
324 |
*/
|
|
325 |
XAresult XAStreamInformationItfAdaptMMF_QueryActiveStreams(
|
|
326 |
XAAdaptationBaseCtx *adaptCtx,
|
|
327 |
XAuint32 *numStreams,
|
|
328 |
XAboolean *activeStreams)
|
|
329 |
{
|
|
330 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
331 |
XAuint32 inputNumStreams;
|
|
332 |
|
|
333 |
DEBUG_API("->XAStreamInformationItfAdaptMMF_QueryActiveStreams");
|
|
334 |
|
|
335 |
/* Both Media Player and Metadata Extractor objec uses the same ctxId */
|
|
336 |
if( !adaptCtx ||
|
|
337 |
(adaptCtx->ctxId != XAMediaPlayerAdaptation) )
|
|
338 |
{
|
|
339 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
340 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryActiveStreams");
|
|
341 |
return XA_RESULT_PARAMETER_INVALID;
|
|
342 |
}
|
|
343 |
|
|
344 |
if( adaptCtx->ctxId == XAMDAdaptation)
|
|
345 |
{
|
|
346 |
DEBUG_ERR("XA_RESULT_PRECONDITIONS_VIOLATED");
|
|
347 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryActiveStreams");
|
|
348 |
return XA_RESULT_PRECONDITIONS_VIOLATED;
|
|
349 |
}
|
|
350 |
|
|
351 |
/* Determine number of streams */
|
|
352 |
ret = mmf_streaminformationitf_get_numstreams(((XAMediaPlayerAdaptationMMFCtx*)adaptCtx)->mmfContext,
|
|
353 |
&inputNumStreams);
|
|
354 |
if (ret != XA_RESULT_SUCCESS)
|
|
355 |
{
|
|
356 |
DEBUG_ERR_A1("XA_RESULT_[0x%x]", (unsigned int)ret);
|
|
357 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryActiveStreams");
|
|
358 |
return ret;
|
|
359 |
}
|
|
360 |
|
|
361 |
if ( activeStreams )
|
|
362 |
{
|
|
363 |
XAuint32 loopIndex;
|
|
364 |
if (*numStreams < inputNumStreams)
|
|
365 |
{
|
|
366 |
DEBUG_INFO("numStreams param value is smaller than number of streams");
|
|
367 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
368 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryActiveStreams");
|
|
369 |
return XA_RESULT_PARAMETER_INVALID;
|
|
370 |
}
|
|
371 |
for (loopIndex = 0; loopIndex < inputNumStreams; loopIndex++)
|
|
372 |
{
|
|
373 |
/* TODO currently gstreamer doesn't allow multiple dynamic streams
|
|
374 |
* all streams are active streams */
|
|
375 |
activeStreams[loopIndex] = XA_BOOLEAN_TRUE;
|
|
376 |
}
|
|
377 |
}
|
|
378 |
else
|
|
379 |
{
|
|
380 |
*numStreams = inputNumStreams;
|
|
381 |
}
|
|
382 |
|
|
383 |
DEBUG_API("->XAStreamInformationItfAdaptMMF_QueryActiveStreams");
|
|
384 |
return XA_RESULT_SUCCESS;
|
|
385 |
}
|
|
386 |
|
|
387 |
XAresult XAStreamInformationItfAdaptMMF_SetActiveStream(
|
|
388 |
XAAdaptationBaseCtx *adaptCtx,
|
|
389 |
XAuint32 streamNum,
|
|
390 |
XAboolean active,
|
|
391 |
XAboolean commitNow)
|
|
392 |
{
|
|
393 |
XAresult ret = XA_RESULT_SUCCESS;
|
|
394 |
XAuint32 numStreams;
|
|
395 |
|
|
396 |
DEBUG_API("->XAStreamInformationItfAdaptMMF_SetActiveStream");
|
|
397 |
|
|
398 |
/* Both Media Player and Metadata Extractor objec uses the same ctxId */
|
|
399 |
if( !adaptCtx ||
|
|
400 |
(adaptCtx->ctxId != XAMediaPlayerAdaptation) )
|
|
401 |
{
|
|
402 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
403 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_SetActiveStream");
|
|
404 |
return XA_RESULT_PARAMETER_INVALID;
|
|
405 |
}
|
|
406 |
|
|
407 |
if( adaptCtx->ctxId == XAMDAdaptation)
|
|
408 |
{
|
|
409 |
DEBUG_ERR("XA_RESULT_PRECONDITIONS_VIOLATED");
|
|
410 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_SetActiveStream");
|
|
411 |
return XA_RESULT_PRECONDITIONS_VIOLATED;
|
|
412 |
}
|
|
413 |
|
|
414 |
/* Determine number of streams */
|
|
415 |
ret = mmf_streaminformationitf_get_numstreams(((XAMediaPlayerAdaptationMMFCtx*)adaptCtx)->mmfContext,
|
|
416 |
&numStreams);
|
|
417 |
if (ret != XA_RESULT_SUCCESS)
|
|
418 |
{
|
|
419 |
DEBUG_ERR_A1("XA_RESULT_[0x%x]", (unsigned int)ret);
|
|
420 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_QueryActiveStreams");
|
|
421 |
return ret;
|
|
422 |
}
|
|
423 |
|
|
424 |
/* validate stream index */
|
|
425 |
if ( streamNum > numStreams )
|
|
426 |
{
|
|
427 |
DEBUG_ERR("XA_RESULT_PARAMETER_INVALID");
|
|
428 |
DEBUG_API("-<XAStreamInformationItfAdaptMMF_SetActiveStream");
|
|
429 |
return XA_RESULT_PARAMETER_INVALID;
|
|
430 |
}
|
|
431 |
|
|
432 |
if(commitNow)
|
|
433 |
{
|
|
434 |
ret = mmf_streaminformationitf_set_activestream(((XAMediaPlayerAdaptationMMFCtx*)adaptCtx)->mmfContext,
|
|
435 |
streamNum, active);
|
|
436 |
}
|
|
437 |
|
|
438 |
DEBUG_API("->XAStreamInformationItfAdaptMMF_SetActiveStream");
|
|
439 |
return ret;
|
|
440 |
}
|
|
441 |
|
|
442 |
|