Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
9c1f8ba1
Commit
9c1f8ba1
authored
May 13, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 1.0-bugfix
parents
03b85ce3
42043990
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+3
-2
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+8
-4
No files found.
modules/stream_out/rtsp.c
View file @
9c1f8ba1
...
...
@@ -635,7 +635,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
{
/* FIXME: we really need to limit the number of tracks... */
char
info
[
ses
->
trackc
*
(
strlen
(
control
)
+
sizeof
(
"
/trackID=123;seq=65535, "
)
)
+
1
];
+
sizeof
(
"url=
/trackID=123;seq=65535, "
)
)
+
1
];
size_t
infolen
=
0
;
for
(
int
i
=
0
;
i
<
ses
->
trackc
;
i
++
)
...
...
@@ -649,7 +649,8 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
rtp_add_sink
(
tr
->
id
,
tr
->
fd
,
false
);
}
infolen
+=
sprintf
(
info
+
infolen
,
"%s/trackID=%u;seq=%u, "
,
control
,
"url=%s/trackID=%u;seq=%u, "
,
control
,
rtp_get_num
(
tr
->
id
),
rtp_get_seq
(
tr
->
id
)
);
}
...
...
modules/video_output/xcb/window.c
View file @
9c1f8ba1
...
...
@@ -114,6 +114,10 @@ xcb_atom_t get_atom (xcb_connection_t *conn, xcb_intern_atom_cookie_t ck)
return
atom
;
}
#define NET_WM_STATE_REMOVE 0
#define NET_WM_STATE_ADD 1
#define NET_WM_STATE_TOGGLE 2
/**
* Create an X11 window.
*/
...
...
@@ -181,7 +185,7 @@ static int Open (vlc_object_t *obj)
xcb_intern_atom_cookie_t
wm_state_ck
,
wm_state_above_ck
;
wm_state_ck
=
xcb_intern_atom
(
conn
,
0
,
13
,
"_NET_WM_STATE"
);
wm_state_above_ck
=
xcb_intern_atom
(
conn
,
0
,
1
8
,
"_NET_WM_STATE_ABOVE"
);
wm_state_above_ck
=
xcb_intern_atom
(
conn
,
0
,
1
9
,
"_NET_WM_STATE_ABOVE"
);
p_sys
->
wm_state
=
get_atom
(
conn
,
wm_state_ck
);
p_sys
->
wm_state_above
=
get_atom
(
conn
,
wm_state_above_ck
);
...
...
@@ -289,16 +293,16 @@ static int Control (vout_window_t *wnd, int cmd, va_list ap)
case
VOUT_SET_STAY_ON_TOP
:
{
/* From EWMH "_WM_STATE" */
xcb_client_message_event_t
ev
=
{
.
response_type
=
0x80
|
XCB_CLIENT_MESSAGE
,
.
response_type
=
XCB_CLIENT_MESSAGE
,
.
format
=
32
,
.
window
=
wnd
->
handle
.
xid
,
.
type
=
p_sys
->
wm_state
,
};
bool
on
=
va_arg
(
ap
,
int
);
ev
.
data
.
data32
[
0
]
=
on
;
ev
.
data
.
data32
[
0
]
=
on
?
NET_WM_STATE_ADD
:
NET_WM_STATE_REMOVE
;
ev
.
data
.
data32
[
1
]
=
p_sys
->
wm_state_above
;
ev
.
data
.
data32
[
1
]
=
289
;
ev
.
data
.
data32
[
2
]
=
0
;
ev
.
data
.
data32
[
3
]
=
1
;
/* From ICCCM "Changing Window State" */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment