Changeset 30629
- Timestamp:
- 10/21/14 10:25:32 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/player.h
r30625 r30629 1384 1384 1385 1385 #ifdef EPLAYER4 1386 typedef enum { atUnknown, atMPEG, atMP3, atAC3, atDTS, atAAC, atPCM, atOGG, atFLAC, atWMA} audiotype_t;1386 typedef enum {atUnknown, atMPEG, atMP3, atAC3, atDTS, atAAC, atPCM, atOGG, atFLAC, atWMA} audiotype_t; 1387 1387 1388 1388 audiotype_t gstCheckAudioPad(GstStructure* structure) 1389 1389 { 1390 if 1390 if(!structure) 1391 1391 return atUnknown; 1392 1392 1393 if ( gst_structure_has_name(structure, "audio/mpeg"))1393 if(gst_structure_has_name(structure, "audio/mpeg")) 1394 1394 { 1395 1395 gint mpegversion, layer = -1; 1396 if 1396 if(!gst_structure_get_int (structure, "mpegversion", &mpegversion)) 1397 1397 return atUnknown; 1398 1398 1399 switch (mpegversion) { 1399 switch(mpegversion) 1400 { 1400 1401 case 1: 1401 1402 { 1402 gst_structure_get_int 1403 if ( layer == 3)1403 gst_structure_get_int(structure, "layer", &layer); 1404 if(layer == 3) 1404 1405 return atMP3; 1405 1406 else … … 1416 1417 } 1417 1418 1418 else if ( gst_structure_has_name (structure, "audio/x-ac3") || gst_structure_has_name (structure, "audio/ac3"))1419 else if(gst_structure_has_name(structure, "audio/x-ac3") || gst_structure_has_name(structure, "audio/ac3")) 1419 1420 return atAC3; 1420 else if ( gst_structure_has_name (structure, "audio/x-dts") || gst_structure_has_name (structure, "audio/dts"))1421 else if(gst_structure_has_name(structure, "audio/x-dts") || gst_structure_has_name(structure, "audio/dts")) 1421 1422 return atDTS; 1422 1423 #if GST_VERSION_MAJOR < 1 1423 else if ( gst_structure_has_name (structure, "audio/x-raw-int"))1424 else if(gst_structure_has_name(structure, "audio/x-raw-int")) 1424 1425 #else 1425 else if ( gst_structure_has_name (structure, "audio/x-raw"))1426 else if(gst_structure_has_name(structure, "audio/x-raw")) 1426 1427 #endif 1427 1428 return atPCM;
Note: See TracChangeset
for help on using the changeset viewer.