DecoderControl, InputStream: use Mutex/Cond instead of GMutex/GCond
This commit is contained in:
		| @@ -135,8 +135,8 @@ int main(int argc, char **argv) | ||||
|  | ||||
| 	/* open the stream and dump it */ | ||||
|  | ||||
| 	GMutex *mutex = g_mutex_new(); | ||||
| 	GCond *cond = g_cond_new(); | ||||
| 	Mutex mutex; | ||||
| 	Cond cond; | ||||
|  | ||||
| 	is = input_stream_open(argv[1], mutex, cond, &error); | ||||
| 	if (is != NULL) { | ||||
| @@ -151,9 +151,6 @@ int main(int argc, char **argv) | ||||
| 		ret = 2; | ||||
| 	} | ||||
|  | ||||
| 	g_cond_free(cond); | ||||
| 	g_mutex_free(mutex); | ||||
|  | ||||
| 	/* deinitialize everything */ | ||||
|  | ||||
| 	input_stream_global_finish(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann