Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6cec0a69
Commit
6cec0a69
authored
May 22, 2002
by
Tony Castley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to reduce segfaults on exit, and also allow only one Playlist window.
parent
455104ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
44 deletions
+3
-44
plugins/beos/vout_beos.cpp
plugins/beos/vout_beos.cpp
+3
-44
No files found.
plugins/beos/vout_beos.cpp
View file @
6cec0a69
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method
* vout_beos.cpp: beos video output display method
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: vout_beos.cpp,v 1.5
6 2002/05/20 11:21:0
1 tcastley Exp $
* $Id: vout_beos.cpp,v 1.5
7 2002/05/22 12:23:4
1 tcastley Exp $
*
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -93,43 +93,6 @@ BWindow *beos_GetAppWindow(char *name)
...
@@ -93,43 +93,6 @@ BWindow *beos_GetAppWindow(char *name)
}
}
return
window
;
return
window
;
}
}
/****************************************************************************
* DrawingThread : thread that really does the drawing
****************************************************************************/
int32
Draw
(
void
*
data
)
{
VideoWindow
*
p_win
;
p_win
=
(
VideoWindow
*
)
data
;
if
(
p_win
->
LockWithTimeout
(
50000
)
==
B_OK
)
{
if
(
p_win
->
vsync
)
{
BScreen
*
screen
;
screen
=
new
BScreen
(
p_win
);
screen
->
WaitForRetrace
(
22000
);
delete
screen
;
}
if
(
p_win
->
mode
==
OVERLAY
)
{
rgb_color
key
;
p_win
->
view
->
SetViewOverlay
(
p_win
->
bitmap
[
p_win
->
i_buffer
],
p_win
->
bitmap
[
p_win
->
i_buffer
]
->
Bounds
()
,
p_win
->
view
->
Bounds
(),
&
key
,
B_FOLLOW_ALL
,
B_OVERLAY_FILTER_HORIZONTAL
|
B_OVERLAY_FILTER_VERTICAL
|
B_OVERLAY_TRANSFER_CHANNEL
);
p_win
->
view
->
SetViewColor
(
key
);
}
else
{
p_win
->
view
->
DrawBitmap
(
p_win
->
bitmap
[
p_win
->
i_buffer
],
p_win
->
view
->
Bounds
()
);
}
p_win
->
Unlock
();
}
return
B_OK
;
}
/*****************************************************************************
/*****************************************************************************
* VideoWindow constructor and destructor
* VideoWindow constructor and destructor
...
@@ -336,8 +299,8 @@ int VideoWindow::SelectDrawingMode(int width, int height)
...
@@ -336,8 +299,8 @@ int VideoWindow::SelectDrawingMode(int width, int height)
{
{
drawingMode
=
OVERLAY
;
drawingMode
=
OVERLAY
;
rgb_color
key
;
rgb_color
key
;
view
->
SetViewOverlay
(
bitmap
[
i_buffer
],
view
->
SetViewOverlay
(
bitmap
[
0
],
bitmap
[
i_buffer
]
->
Bounds
()
,
bitmap
[
0
]
->
Bounds
()
,
view
->
Bounds
(),
view
->
Bounds
(),
&
key
,
B_FOLLOW_ALL
,
&
key
,
B_FOLLOW_ALL
,
B_OVERLAY_FILTER_HORIZONTAL
|
B_OVERLAY_FILTER_VERTICAL
);
B_OVERLAY_FILTER_HORIZONTAL
|
B_OVERLAY_FILTER_VERTICAL
);
...
@@ -367,8 +330,6 @@ int VideoWindow::SelectDrawingMode(int width, int height)
...
@@ -367,8 +330,6 @@ int VideoWindow::SelectDrawingMode(int width, int height)
bitmap
[
1
]
=
new
BBitmap
(
BRect
(
0
,
0
,
width
,
height
),
colspace
[
colspace_index
].
colspace
);
bitmap
[
1
]
=
new
BBitmap
(
BRect
(
0
,
0
,
width
,
height
),
colspace
[
colspace_index
].
colspace
);
bitmap
[
2
]
=
new
BBitmap
(
BRect
(
0
,
0
,
width
,
height
),
colspace
[
colspace_index
].
colspace
);
bitmap
[
2
]
=
new
BBitmap
(
BRect
(
0
,
0
,
width
,
height
),
colspace
[
colspace_index
].
colspace
);
}
}
intf_Msg
(
"Selected mode: %d, %s"
,
colspace
[
colspace_index
].
chroma
,
colspace
[
colspace_index
].
name
);
return
drawingMode
;
return
drawingMode
;
}
}
...
@@ -457,7 +418,6 @@ int vout_Create( vout_thread_t *p_vout )
...
@@ -457,7 +418,6 @@ int vout_Create( vout_thread_t *p_vout )
}
}
p_vout
->
p_sys
->
i_width
=
p_vout
->
render
.
i_width
;
p_vout
->
p_sys
->
i_width
=
p_vout
->
render
.
i_width
;
p_vout
->
p_sys
->
i_height
=
p_vout
->
render
.
i_height
;
p_vout
->
p_sys
->
i_height
=
p_vout
->
render
.
i_height
;
intf_Msg
(
"Chroma of source: %d"
,
p_vout
->
render
.
i_chroma
);
return
(
0
);
return
(
0
);
}
}
...
@@ -599,7 +559,6 @@ void vout_Display( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -599,7 +559,6 @@ void vout_Display( vout_thread_t *p_vout, picture_t *p_pic )
}
}
/* change buffer */
/* change buffer */
p_vout
->
p_sys
->
i_index
=
++
p_vout
->
p_sys
->
i_index
%
3
;
p_vout
->
p_sys
->
i_index
=
++
p_vout
->
p_sys
->
i_index
%
3
;
// p_vout->p_sys->i_index = ++p_vout->p_sys->i_index & 1;
p_pic
->
p
->
p_pixels
=
p_vout
->
p_sys
->
pp_buffer
[
p_vout
->
p_sys
->
i_index
];
p_pic
->
p
->
p_pixels
=
p_vout
->
p_sys
->
pp_buffer
[
p_vout
->
p_sys
->
i_index
];
}
}
...
...
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