Changeset 675
- Timestamp:
- 12/17/09 21:49:22 (2 years ago)
- Files:
-
- sweep/trunk/src/driver_pulseaudio.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sweep/trunk/src/driver_pulseaudio.c
r674 r675 47 47 #include <pulse/error.h> 48 48 49 sw_handle * handle_in, * handle_out = NULL; 49 static sw_handle handle_ro = { 50 0, -1, 0, 0, NULL 51 }; 52 53 static sw_handle handle_wo = { 54 0, -1, 0, 0, NULL 55 }; 56 57 static sw_handle handle_rw = { 58 0, -1, 0, 0, NULL 59 }; 50 60 51 61 static GList * … … 62 72 pulse_open (int monitoring, int flags) 63 73 { 64 sw_handle * handle = NULL;74 sw_handle * handle = &handle_rw; 65 75 66 76 if (flags == O_RDONLY) { 67 handle = handle_in;77 handle = &handle_ro; 68 78 } else if (flags == O_WRONLY) { 69 handle = handle_out; 70 } else { 71 return NULL; 72 } 73 74 handle = g_malloc0 (sizeof (sw_handle)); 79 handle = &handle_wo; 80 } 75 81 76 82 handle->driver_flags = flags;
