Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int vidtv_start_streaming(struct vidtv_dvb *dvb)
- {
- struct vidtv_mux_init_args mux_args = {0};
- struct device *dev = &dvb->pdev->dev;
- u32 mux_buf_sz;
- if (dvb->streaming) {
- dev_warn_ratelimited(dev, "Already streaming. Skipping.\n");
- return 0;
- }
- mux_buf_sz = (mux_buf_sz_pkts) ? mux_buf_sz_pkts : vidtv_bridge_mux_buf_sz_for_mux_rate();
- mux_args.mux_rate_kbytes_sec = mux_rate_kbytes_sec;
- mux_args.on_new_packets_available_cb = vidtv_bridge_on_new_pkts_avail;
- mux_args.mux_buf_sz = mux_buf_sz;
- mux_args.pcr_period_usecs = pcr_period_msec * 1000;
- mux_args.si_period_usecs = si_period_msec * 1000;
- mux_args.pcr_pid = pcr_pid;
- mux_args.transport_stream_id = VIDTV_DEFAULT_TS_ID;
- mux_args.priv = dvb;
- dvb->streaming = true;
- dvb->mux = vidtv_mux_init(dvb->fe[0], dev, mux_args);
- vidtv_mux_start_thread(dvb->mux);
- dev_dbg_ratelimited(dev, "Started streaming\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement