gst_discoverer_discover_uri_async: dc->priv->current_info is NULL in async_timeout_cb()
Describe your issue
I just ran into this while debugging a different issue.
When calling gst_discoverer_discover_uri_async
on a file that does not exist, async_timeout_cb
in gstdiscoverer.c
tries to set dc->priv->current_info->result
but dc->priv->current_info
is NULL
.
Exception thrown: write access violation.
dc->priv->**current_info** was nullptr.
GST_DISCOVERER_TIMEOUT GST_DISCOVERER_TIMEOUT (3) GstDiscovererResult
+ dc 0x000001d23adf70e0 {parent={g_type_instance={g_class=0x000001d23f6a42b0 {g_type=2002531146416 } } ref_count=...} ...} _GstDiscoverer *
+ dc->priv 0x000001d23adf7010 {async=1 timeout=10000000000 pending_uris=0x0000000000000000 <NULL> ...} _GstDiscovererPrivate *
- dc->priv->current_info 0x0000000000000000 <NULL> _GstDiscovererInfo *
- parent <struct at NULL> _GObject
- g_type_instance <struct at NULL> _GTypeInstance
g_class <Unable to read memory>
ref_count <Unable to read memory>
qdata <Unable to read memory>
uri <Unable to read memory>
result <Unable to read memory>
stream_info <Unable to read memory>
stream_list <Unable to read memory>
duration <Unable to read memory>
misc <Unable to read memory>
tags <Unable to read memory>
toc <Unable to read memory>
live <Unable to read memory>
seekable <Unable to read memory>
missing_elements_details <Unable to read memory>
stream_count <Unable to read memory>
cachefile <Unable to read memory>
from_cache <Unable to read memory>
g_main_current_source 0x00007ff81769702f {gstpbutils-1.0-0.dll!g_main_current_source} void *
g_source_is_destroyed 0x00007ff817697053 {gstpbutils-1.0-0.dll!g_source_is_destroyed} void *
Expected Behavior
No crash.
Observed Behavior
Exception crash
Setup
- Operating System: Windows 10
- Device: Computer
- GStreamer Version: 1.20.4
- Command line:
Steps to reproduce the bug
How reproducible is the bug?
Always.