Changeset 5248 for pjproject


Ignore:
Timestamp:
Feb 29, 2016 1:10:21 AM (9 years ago)
Author:
ming
Message:

Re #1882 (misc): Fixed a bug in Android sound device backends which prevent them to create a unidirectional stream

Location:
pjproject/trunk/pjmedia/src/pjmedia-audiodev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/android_jni_dev.c

    r5157 r5248  
    566566    stream->pool = pool; 
    567567    pj_strdup2_with_null(pool, &stream->name, "JNI stream"); 
    568     stream->dir = PJMEDIA_DIR_CAPTURE_PLAYBACK; 
     568    stream->dir = param->dir; 
    569569    pj_memcpy(&stream->param, param, sizeof(*param)); 
    570570    stream->user_data = user_data; 
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/opensl_dev.c

    r4960 r5248  
    490490    stream->pool = pool; 
    491491    pj_strdup2_with_null(pool, &stream->name, "OpenSL"); 
    492     stream->dir = PJMEDIA_DIR_CAPTURE_PLAYBACK; 
     492    stream->dir = param->dir; 
    493493    pj_memcpy(&stream->param, param, sizeof(*param)); 
    494494    stream->user_data = user_data; 
Note: See TracChangeset for help on using the changeset viewer.