Commit 3fd83279 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winegstreamer: Force debug info in critical sections.

parent 8857df96
...@@ -1243,7 +1243,7 @@ static HRESULT media_sink_create(IMFByteStream *bytestream, const char *format, ...@@ -1243,7 +1243,7 @@ static HRESULT media_sink_create(IMFByteStream *bytestream, const char *format,
media_sink->async_callback.lpVtbl = &media_sink_callback_vtbl; media_sink->async_callback.lpVtbl = &media_sink_callback_vtbl;
media_sink->refcount = 1; media_sink->refcount = 1;
media_sink->state = STATE_OPENED; media_sink->state = STATE_OPENED;
InitializeCriticalSection(&media_sink->cs); InitializeCriticalSectionEx(&media_sink->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
media_sink->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs"); media_sink->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs");
IMFByteStream_AddRef((media_sink->bytestream = bytestream)); IMFByteStream_AddRef((media_sink->bytestream = bytestream));
list_init(&media_sink->stream_sinks); list_init(&media_sink->stream_sinks);
......
...@@ -1634,7 +1634,7 @@ static HRESULT media_source_create(struct object_context *context, IMFMediaSourc ...@@ -1634,7 +1634,7 @@ static HRESULT media_source_create(struct object_context *context, IMFMediaSourc
IMFByteStream_AddRef(context->stream); IMFByteStream_AddRef(context->stream);
object->file_size = context->file_size; object->file_size = context->file_size;
object->rate = 1.0f; object->rate = 1.0f;
InitializeCriticalSection(&object->cs); InitializeCriticalSectionEx(&object->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs"); object->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs");
if (FAILED(hr = MFCreateEventQueue(&object->event_queue))) if (FAILED(hr = MFCreateEventQueue(&object->event_queue)))
......
...@@ -1663,7 +1663,7 @@ static HRESULT parser_create(enum wg_parser_type type, BOOL output_compressed, s ...@@ -1663,7 +1663,7 @@ static HRESULT parser_create(enum wg_parser_type type, BOOL output_compressed, s
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
} }
InitializeCriticalSection(&object->streaming_cs); InitializeCriticalSectionEx(&object->streaming_cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->streaming_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": parser.streaming_cs"); object->streaming_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": parser.streaming_cs");
InitializeConditionVariable(&object->flushing_cv); InitializeConditionVariable(&object->flushing_cv);
...@@ -2145,7 +2145,7 @@ static struct parser_source *create_pin(struct parser *filter, ...@@ -2145,7 +2145,7 @@ static struct parser_source *create_pin(struct parser *filter,
GST_ChangeCurrent, GST_ChangeRate); GST_ChangeCurrent, GST_ChangeRate);
BaseFilterImpl_IncrementPinVersion(&filter->filter); BaseFilterImpl_IncrementPinVersion(&filter->filter);
InitializeCriticalSection(&pin->flushing_cs); InitializeCriticalSectionEx(&pin->flushing_cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
pin->flushing_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": pin.flushing_cs"); pin->flushing_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": pin.flushing_cs");
InitializeConditionVariable(&pin->eos_cv); InitializeConditionVariable(&pin->eos_cv);
......
...@@ -283,7 +283,7 @@ HRESULT wg_sample_queue_create(struct wg_sample_queue **out) ...@@ -283,7 +283,7 @@ HRESULT wg_sample_queue_create(struct wg_sample_queue **out)
if (!(queue = calloc(1, sizeof(*queue)))) if (!(queue = calloc(1, sizeof(*queue))))
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
InitializeCriticalSection(&queue->cs); InitializeCriticalSectionEx(&queue->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
queue->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs"); queue->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": cs");
list_init(&queue->samples); list_init(&queue->samples);
......
...@@ -2658,9 +2658,9 @@ HRESULT WINAPI winegstreamer_create_wm_sync_reader(IUnknown *outer, void **out) ...@@ -2658,9 +2658,9 @@ HRESULT WINAPI winegstreamer_create_wm_sync_reader(IUnknown *outer, void **out)
object->outer = outer ? outer : &object->IUnknown_inner; object->outer = outer ? outer : &object->IUnknown_inner;
object->refcount = 1; object->refcount = 1;
InitializeCriticalSection(&object->cs); InitializeCriticalSectionEx(&object->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": reader.cs"); object->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": reader.cs");
InitializeCriticalSection(&object->shutdown_cs); InitializeCriticalSectionEx(&object->shutdown_cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
object->shutdown_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": reader.shutdown_cs"); object->shutdown_cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": reader.shutdown_cs");
TRACE("Created reader %p.\n", object); TRACE("Created reader %p.\n", object);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment