- Timestamp:
- Jul 7, 2011 7:12:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/sdl_dev.c
r3592 r3605 1116 1116 PJ_ASSERT_RETURN(s && pval, PJ_EINVAL); 1117 1117 1118 #if SDL_VERSION_ATLEAST(1,3,0) 1118 1119 if (cap == PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW) 1119 1120 { … … 1124 1125 &((pjmedia_coord *)pval)->y); 1125 1126 return PJ_SUCCESS; 1126 } else { 1127 return PJMEDIA_EVID_INVCAP; 1128 } 1127 } 1128 #endif 1129 1130 return PJMEDIA_EVID_INVCAP; 1129 1131 } 1130 1132 … … 1140 1142 PJ_ASSERT_RETURN(s && pval, PJ_EINVAL); 1141 1143 1144 #if SDL_VERSION_ATLEAST(1,3,0) 1142 1145 if (cap == PJMEDIA_VID_DEV_CAP_OUTPUT_POSITION) { 1143 1146 SDL_SetWindowPosition(strm->window, ((pjmedia_coord *)pval)->x, … … 1150 1153 SDL_ShowWindow(strm->window); 1151 1154 return PJ_SUCCESS; 1152 } else if (cap == PJMEDIA_VID_DEV_CAP_FORMAT) { 1155 } else 1156 #endif 1157 if (cap == PJMEDIA_VID_DEV_CAP_FORMAT) { 1153 1158 strm->new_fmt = (pjmedia_format *)pval; 1154 1159 #if defined(PJ_DARWINOS) && PJ_DARWINOS!=0
Note: See TracChangeset
for help on using the changeset viewer.