mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
d3dvideosink: remove trailing ';' from locks defines to make gst-indent happy
This commit is contained in:
parent
3971ef089c
commit
ade676879a
1 changed files with 38 additions and 29 deletions
|
@ -28,10 +28,10 @@
|
||||||
#define IDT_DEVICELOST 1
|
#define IDT_DEVICELOST 1
|
||||||
|
|
||||||
/* Provide access to data that will be shared among all instantiations of this element */
|
/* Provide access to data that will be shared among all instantiations of this element */
|
||||||
#define GST_D3DVIDEOSINK_SHARED_D3D_LOCK g_static_mutex_lock (&shared_d3d_lock);
|
#define GST_D3DVIDEOSINK_SHARED_D3D_LOCK g_static_mutex_lock (&shared_d3d_lock)
|
||||||
#define GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK g_static_mutex_unlock (&shared_d3d_lock);
|
#define GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK g_static_mutex_unlock (&shared_d3d_lock)
|
||||||
#define GST_D3DVIDEOSINK_SHARED_D3D_HOOK_LOCK g_static_mutex_lock (&shared_d3d_hook_lock);
|
#define GST_D3DVIDEOSINK_SHARED_D3D_HOOK_LOCK g_static_mutex_lock (&shared_d3d_hook_lock)
|
||||||
#define GST_D3DVIDEOSINK_SHARED_D3D_HOOK_UNLOCK g_static_mutex_unlock (&shared_d3d_hook_lock);
|
#define GST_D3DVIDEOSINK_SHARED_D3D_HOOK_UNLOCK g_static_mutex_unlock (&shared_d3d_hook_lock)
|
||||||
typedef struct _GstD3DVideoSinkShared GstD3DVideoSinkShared;
|
typedef struct _GstD3DVideoSinkShared GstD3DVideoSinkShared;
|
||||||
struct _GstD3DVideoSinkShared
|
struct _GstD3DVideoSinkShared
|
||||||
{
|
{
|
||||||
|
@ -1136,9 +1136,10 @@ gst_d3dvideosink_set_window_for_renderer (GstD3DVideoSink * sink)
|
||||||
/* when we're done. */
|
/* when we're done. */
|
||||||
GST_DEBUG ("Unable to set window procedure. Error: %s",
|
GST_DEBUG ("Unable to set window procedure. Error: %s",
|
||||||
g_win32_error_message (GetLastError ()));
|
g_win32_error_message (GetLastError ()));
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_LOCK
|
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_LOCK;
|
||||||
gst_d3dvideosink_hook_window_for_renderer (sink);
|
gst_d3dvideosink_hook_window_for_renderer (sink);
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_UNLOCK} else {
|
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_UNLOCK;
|
||||||
|
} else {
|
||||||
GST_DEBUG ("Set wndproc to %p from %p", WndProcHook, sink->prevWndProc);
|
GST_DEBUG ("Set wndproc to %p from %p", WndProcHook, sink->prevWndProc);
|
||||||
GST_DEBUG ("Set renderer window to %p", sink->window_handle);
|
GST_DEBUG ("Set renderer window to %p", sink->window_handle);
|
||||||
}
|
}
|
||||||
|
@ -1307,7 +1308,8 @@ gst_d3dvideosink_unhook_all_windows (void)
|
||||||
/* Unhook all windows that may be currently hooked. This is mainly a precaution in case */
|
/* Unhook all windows that may be currently hooked. This is mainly a precaution in case */
|
||||||
/* a wayward process doesn't properly set state back to NULL (which would remove the hook). */
|
/* a wayward process doesn't properly set state back to NULL (which would remove the hook). */
|
||||||
|
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_LOCK GST_D3DVIDEOSINK_SHARED_D3D_HOOK_LOCK
|
GST_D3DVIDEOSINK_SHARED_D3D_LOCK;
|
||||||
|
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_LOCK;
|
||||||
{
|
{
|
||||||
GList *item;
|
GList *item;
|
||||||
GstD3DVideoSink *s;
|
GstD3DVideoSink *s;
|
||||||
|
@ -1320,7 +1322,9 @@ gst_d3dvideosink_unhook_all_windows (void)
|
||||||
gst_d3dvideosink_unhook_window_for_renderer (s);
|
gst_d3dvideosink_unhook_window_for_renderer (s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_UNLOCK GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK}
|
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_UNLOCK;
|
||||||
|
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_d3dvideosink_remove_window_for_renderer (GstD3DVideoSink * sink)
|
gst_d3dvideosink_remove_window_for_renderer (GstD3DVideoSink * sink)
|
||||||
|
@ -1345,9 +1349,9 @@ gst_d3dvideosink_remove_window_for_renderer (GstD3DVideoSink * sink)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_LOCK
|
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_LOCK;
|
||||||
gst_d3dvideosink_unhook_window_for_renderer (sink);
|
gst_d3dvideosink_unhook_window_for_renderer (sink);
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_UNLOCK
|
GST_D3DVIDEOSINK_SHARED_D3D_HOOK_UNLOCK;
|
||||||
/* Remove the property associating our sink with the window */
|
/* Remove the property associating our sink with the window */
|
||||||
RemoveProp (sink->window_handle, TEXT ("GstD3DVideoSink"));
|
RemoveProp (sink->window_handle, TEXT ("GstD3DVideoSink"));
|
||||||
}
|
}
|
||||||
|
@ -1834,7 +1838,7 @@ error:
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_d3dvideosink_update_all (GstD3DVideoSink * sink)
|
gst_d3dvideosink_update_all (GstD3DVideoSink * sink)
|
||||||
{
|
{
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_LOCK {
|
GST_D3DVIDEOSINK_SHARED_D3D_LOCK; {
|
||||||
GList *item;
|
GList *item;
|
||||||
GstD3DVideoSink *s;
|
GstD3DVideoSink *s;
|
||||||
for (item = g_list_first (shared.element_list); item; item = item->next) {
|
for (item = g_list_first (shared.element_list); item; item = item->next) {
|
||||||
|
@ -1843,7 +1847,8 @@ gst_d3dvideosink_update_all (GstD3DVideoSink * sink)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*success:*/
|
/*success:*/
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK return TRUE;
|
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK;
|
||||||
|
return TRUE;
|
||||||
/*error:*/
|
/*error:*/
|
||||||
/* GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK */
|
/* GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK */
|
||||||
/* */
|
/* */
|
||||||
|
@ -1853,7 +1858,7 @@ gst_d3dvideosink_update_all (GstD3DVideoSink * sink)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_d3dvideosink_refresh_all (GstD3DVideoSink * sink)
|
gst_d3dvideosink_refresh_all (GstD3DVideoSink * sink)
|
||||||
{
|
{
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_LOCK {
|
GST_D3DVIDEOSINK_SHARED_D3D_LOCK; {
|
||||||
GList *item;
|
GList *item;
|
||||||
GstD3DVideoSink *s;
|
GstD3DVideoSink *s;
|
||||||
for (item = g_list_first (shared.element_list); item; item = item->next) {
|
for (item = g_list_first (shared.element_list); item; item = item->next) {
|
||||||
|
@ -1862,7 +1867,8 @@ gst_d3dvideosink_refresh_all (GstD3DVideoSink * sink)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*success:*/
|
/*success:*/
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK return TRUE;
|
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK;
|
||||||
|
return TRUE;
|
||||||
/*error:*/
|
/*error:*/
|
||||||
/* GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK */
|
/* GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK */
|
||||||
/* return FALSE; */
|
/* return FALSE; */
|
||||||
|
@ -1971,7 +1977,7 @@ gst_d3dvideosink_initialize_direct3d (GstD3DVideoSink * sink)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_LOCK
|
GST_D3DVIDEOSINK_SHARED_D3D_LOCK;
|
||||||
/* Add to our GList containing all of our elements. */
|
/* Add to our GList containing all of our elements. */
|
||||||
/* GLists are doubly-linked lists and calling prepend() prevents it from having to traverse the entire list just to add one item. */
|
/* GLists are doubly-linked lists and calling prepend() prevents it from having to traverse the entire list just to add one item. */
|
||||||
shared.element_list = g_list_prepend (shared.element_list, sink);
|
shared.element_list = g_list_prepend (shared.element_list, sink);
|
||||||
|
@ -2018,9 +2024,11 @@ gst_d3dvideosink_initialize_direct3d (GstD3DVideoSink * sink)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
success:
|
success:
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK return TRUE;
|
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK;
|
||||||
|
return TRUE;
|
||||||
error:
|
error:
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK return FALSE;
|
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK;
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -2346,7 +2354,7 @@ static gboolean
|
||||||
gst_d3dvideosink_release_direct3d (GstD3DVideoSink * sink)
|
gst_d3dvideosink_release_direct3d (GstD3DVideoSink * sink)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("Cleaning all Direct3D objects");
|
GST_DEBUG ("Cleaning all Direct3D objects");
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_LOCK
|
GST_D3DVIDEOSINK_SHARED_D3D_LOCK;
|
||||||
/* Be absolutely sure that we've released this sink's hook (if any). */
|
/* Be absolutely sure that we've released this sink's hook (if any). */
|
||||||
gst_d3dvideosink_unhook_window_for_renderer (sink);
|
gst_d3dvideosink_unhook_window_for_renderer (sink);
|
||||||
|
|
||||||
|
@ -2374,7 +2382,8 @@ gst_d3dvideosink_release_direct3d (GstD3DVideoSink * sink)
|
||||||
gst_d3dvideosink_close_shared_hidden_window (sink);
|
gst_d3dvideosink_close_shared_hidden_window (sink);
|
||||||
|
|
||||||
success:
|
success:
|
||||||
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK return TRUE;
|
GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK;
|
||||||
|
return TRUE;
|
||||||
/*error:*/
|
/*error:*/
|
||||||
/* GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK */
|
/* GST_D3DVIDEOSINK_SHARED_D3D_UNLOCK */
|
||||||
/* return FALSE; */
|
/* return FALSE; */
|
||||||
|
|
Loading…
Reference in a new issue