Flole Systems wrote:
It's been a while since I last used gdb, I'd try something like "print *im->mm_active", if that doesn't work "print *im".
(gdb) bt
#0 iptv_input_thread (aux=0x5619f8c32f10) at src/input/mpegts/iptv/iptv.c:566
#1 0x00005619f6b9ca59 in thread_wrapper (p=0x5619f8c0f850) at src/tvh_thread.c:91
#2 0x00007f9c05de1609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#3 0x00007f9c05bb5163 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) frame 0
#0 iptv_input_thread (aux=0x5619f8c32f10) at src/input/mpegts/iptv/iptv.c:566
566 mi = (iptv_input_t *)im->mm_active->mmi_input;
(gdb) print *im->mm_active
There is no member named mm_active.
(gdb) print *im
$1 = {{mm_id = {in_uuid = {bin = "\352\034*\241O2\365d\364\341\235̑\376\201\215"}, in_link = {left = 0x5619f8c66580, right = 0x7f9be419a050, parent = 0x5619f8c44250, color = 1}, in_domain_link = {left = 0x5619f8c66580, right = 0x5619f8c572e0,
parent = 0x5619f8c510f0, color = 1}, in_domain = 0x5619f8c0f4e8, in_class = 0x5619f6efaac0 <iptv_mux_class>, in_access = 0x0, in_save = 0x0}, mm_refcount = 1, mm_network_link = {le_next = 0x0, le_prev = 0x5619f8c51168},
mm_network = 0x5619f8c10c00, mm_nicename = 0x7f9be414c130 "Channel SD in INPUT TR", mm_provider_network_name = 0x0, mm_onid = 65281, mm_tsid = 1, mm_tsid_checks = -100, mm_tsid_accept_zero_value = 0, mm_tsid_loglimit = {last = 0,
count = 0}, mm_start_monoclock = 1546923776923, mm_created = 1642971212, mm_update_pids_flag = 1, mm_update_pids_timer = {mti_link = {le_next = 0x5619f8c347c0, le_prev = 0x5619f6f6c4c0 <mtimers>}, mti_magic1 = 224569822, mti_callback = 0x0,
mti_opaque = 0x5619f8c47b10, mti_expire = 1546929937101}, mm_services = {lh_first = 0x5619f8c29100}, mm_scan_first = 1642971237, mm_scan_last_seen = 1642971581, mm_scan_result = MM_SCAN_OK, mm_scan_weight = 0, mm_scan_flags = 0,
mm_scan_init = 0, mm_scan_timeout = {mti_link = {le_next = 0x0, le_prev = 0x0}, mti_magic1 = 0, mti_callback = 0x0, mti_opaque = 0x0, mti_expire = 0}, mm_scan_link = {tqe_next = 0x0, tqe_prev = 0x0}, mm_scan_state = MM_SCAN_STATE_IDLE,
mm_dmc_origin = 0x0, mm_dmc_origin_expire = 0, mm_fastscan_muxes = 0x0, mm_instances = {lh_first = 0x7f9be4135dc0}, mm_active = 0x0, mm_transports = {lh_first = 0x0}, mm_raw_subs = {lh_first = 0x0}, mm_input_pos = 1029676, mm_pids = {
first = 0x7f9be4168630, last = 0x7f9be419f320, root = 0x7f9be414c080, entries = 4}, mm_all_subs = {lh_first = 0x0}, mm_last_pid = -1, mm_last_mp = 0x0, mm_num_tables = 6, mm_tables = {lh_first = 0x7f9b64002330}, mm_defer_tables = {
tqh_first = 0x0, tqh_last = 0x5619f8c47d10}, mm_tables_lock = {mutex = pthread_mutex_t = {Type = Normal, Status = Not acquired, Robust = No, Shared = No, Protocol = None}, magic1 = 3614061450, tid = 0, filename = 0x0, lineno = 0, tstamp = 0,
waiters = {lh_first = 0x0}, link = {tqe_next = 0x0, tqe_prev = 0x0}, magic2 = 4181353505}, mm_table_queue = {tqh_first = 0x0, tqh_last = 0x5619f8c47d90}, mm_descrambler_caids = {lh_first = 0x0}, mm_descrambler_tables = {tqh_first = 0x0,
tqh_last = 0x5619f8c47da8}, mm_descrambler_emms = {tqh_first = 0x0, tqh_last = 0x5619f8c47db8}, mm_descrambler_lock = {mutex = pthread_mutex_t = {Type = Normal, Status = Not acquired, Robust = No, Shared = No, Protocol = None},
magic1 = 3614061450, tid = 0, filename = 0x0, lineno = 0, tstamp = 0, waiters = {lh_first = 0x0}, link = {tqe_next = 0x0, tqe_prev = 0x0}, magic2 = 4181353505}, mm_descrambler_flush = 1, mm_delete = 0x5619f6d23604 <iptv_mux_delete>,
mm_free = 0x5619f6d234ad <iptv_mux_free>, mm_config_save = 0x5619f6d233a8 <iptv_mux_config_save>, mm_display_name = 0x5619f6d236a4 <iptv_mux_display_name>, mm_is_enabled = 0x5619f6cbceb2 <mpegts_mux_is_enabled>,
mm_stop = 0x5619f6cbd039 <mpegts_mux_stop>, mm_open_table = 0x5619f6cbf36a <mpegts_mux_open_table>, mm_unsubscribe_table = 0x5619f6cbf6fb <mpegts_mux_unsubscribe_table>, mm_close_table = 0x5619f6cbf8df <mpegts_mux_close_table>,
mm_create_instances = 0x5619f6cbcf08 <mpegts_mux_create_instances>, mm_is_epg = 0x5619f6cbcef0 <mpegts_mux_is_epg>, mm_crid_authority = 0x0, mm_enabled = 1, mm_epg = 0, mm_epg_module_id = 0x0, mm_charset = 0x0, mm_pmt_ac3 = 0,
mm_eit_tsid_nocheck = 0, mm_sid_filter = 0}, mm_iptv_priority = 0, mm_iptv_streaming_priority = 0, mm_iptv_fd = 11952, mm_iptv_connection = 0x0,
mm_iptv_url = 0x5619f8c18130 "pipe:///usr/bin/ffmpeg -loglevel fatal -i http://192.168.10.55:9981/stream/channelid/927883541?profile=pass -map 0:v -map 0:a -c:v libx264 -x264-params keyint=25 -s pal -b:v 3M -ma"...,
mm_iptv_url_sane = 0x5619f8c28f60 "pipe:///usr/bin/ffmpeg -loglevel fatal -i http://192.168.10.55:9981/stream/channelid/927883541?profile=pass -map 0:v -map 0:a -c:v libx264 -x264-params keyint=25 -s pal -b:v 3M -ma"...,
mm_iptv_url_raw = 0x5619f8c7a0e0 "pipe:///usr/bin/ffmpeg -loglevel fatal -i http://192.168.10.55:9981/stream/channelid/927883541?profile=pass -map 0:v -map 0:a -c:v libx264 -x264-params keyint=25 -s pal -b:v 3M -ma"...,
mm_iptv_url_cmpid = 0x0, mm_iptv_ret_url = 0x0, mm_iptv_ret_url_sane = 0x0, mm_iptv_ret_url_raw = 0x0, mm_iptv_ret_url_cmpid = 0x0, mm_iptv_interface = 0x0, mm_iptv_send_reports = 0, mm_iptv_substitute = 0, mm_iptv_libav = 0, mm_iptv_atsc = 0,
mm_iptv_muxname = 0x5619f8c12150 "Channel SD", mm_iptv_svcname = 0x5619f8c0ff70 "Channel SD", mm_iptv_chnum = 0, mm_iptv_icon = 0x0, mm_iptv_epgid = 0x0, mm_iptv_respawn = 0, mm_iptv_respawn_last = 1546923776923,
mm_iptv_kill = 0, mm_iptv_kill_timeout = 5, mm_iptv_env = 0x0, mm_iptv_hdr = 0x0, mm_iptv_tags = 0x0, mm_iptv_satip_dvbt_freq = 0, mm_iptv_satip_dvbc_freq = 0, mm_iptv_satip_dvbs_freq = 0, mm_iptv_rtp_seq = 0, mm_iptv_buffer = {
sb_data = 0x7f9be41a0380 "GA\004\060\001@", sb_ptr = 9588, sb_size = 376000, sb_err = 0, sb_bswap = 0 '\000'}, im_temp_buffer = {sb_data = 0x0, sb_ptr = 0, sb_size = 0, sb_err = 0, sb_bswap = 0 '\000'}, mm_iptv_buffer_limit = 0,
im_handler = 0x5619f6f5ff80 <ih>, im_pause_timer = {mti_link = {le_next = 0x5619f8c2a200, le_prev = 0x5619f6f6c4c0 <mtimers>}, mti_magic1 = 224569822, mti_callback = 0x0, mti_opaque = 0x5619f8c47b10, mti_expire = 815763436966}, im_pcr = 264960,
im_pcr_start = 1546929963772, im_pcr_end = 1546930919777, im_pcr_pid = 256, im_data = 0x29e75a, im_delete_flag = 0, im_opaque = 0x0, im_um = {um_psize = 0, um_packets = 0, um_data = 0x0, um_iovec = 0x0, um_riovec = 0x0, um_msg = 0x0},
im_use_retransmission = 0 '\000', im_is_ce_detected = 0 '\000', im_rtcp_info = {last_ts = 0, next_ts = 0, average_packet_size = 0, members = 0, senders = 0, last_received_sequence = 0, ce_cnt = 0, sequence_cycle = 0, nak_req_limit = 0,
connection = 0x0, connection_fd = 0, um = {um_psize = 0, um_packets = 0, um_data = 0x0, um_iovec = 0x0, um_riovec = 0x0, um_msg = 0x0}, source_ssrc = 0, my_ssrc = 0}}
mm_active = 0x0