| 350 | } |
| 351 | |
| 352 | static void packet_queue_abort(PacketQueue *q) |
| 353 | { |
| 354 | SDL_LockMutex(q->mutex); |
| 355 | |
| 356 | q->abort_request = 1; |
| 357 | |
| 358 | SDL_CondSignal(q->cond); |
| 359 | |
| 360 | SDL_UnlockMutex(q->mutex); |
| 361 | } |
| 362 | |
| 363 | /* return < 0 if aborted, 0 if no packet and > 0 if packet. */ |
| 364 | static int packet_queue_get(PacketQueue *q, AVPacket *pkt, int block) |
no outgoing calls
no test coverage detected