Send MMST stream selection command based on the AVStream->discard values. */
| 444 | |
| 445 | /** Send MMST stream selection command based on the AVStream->discard values. */ |
| 446 | static int send_stream_selection_request(MMSTContext *mmst) |
| 447 | { |
| 448 | int i; |
| 449 | MMSContext *mms = &mmst->mms; |
| 450 | // send the streams we want back... |
| 451 | start_command_packet(mmst, CS_PKT_STREAM_ID_REQUEST); |
| 452 | bytestream_put_le32(&mms->write_out_ptr, mms->stream_num); // stream nums |
| 453 | for(i= 0; i<mms->stream_num; i++) { |
| 454 | bytestream_put_le16(&mms->write_out_ptr, 0xffff); // flags |
| 455 | bytestream_put_le16(&mms->write_out_ptr, mms->streams[i].id); // stream id |
| 456 | bytestream_put_le16(&mms->write_out_ptr, 0); // selection |
| 457 | } |
| 458 | return send_command_packet(mmst); |
| 459 | } |
| 460 | |
| 461 | static int send_close_packet(MMSTContext *mmst) |
| 462 | { |
nothing calls this directly
no test coverage detected