Changeset e315c9b416dd33922deb3700dd192bad1cfff872
- Timestamp:
- 13/06/08 15:14:38
(6 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213362878 +0200
- git-parent:
[d5aaf6b2714a65b9fd25f1c34624ca551c0ce99d]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213362878 +0200
- Message:
libvlc_video_set_viewport: Make sure we don't crash if view is NULL.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd5aaf6b |
re315c9b |
|
| 293 | 293 | libvlc_exception_t *p_e ) |
|---|
| 294 | 294 | { |
|---|
| 295 | | if( NULL == view ) |
|---|
| | 295 | if( !view ) |
|---|
| 296 | 296 | { |
|---|
| 297 | 297 | libvlc_exception_raise( p_e, "viewport is NULL" ); |
|---|
| | 298 | return; |
|---|
| 298 | 299 | } |
|---|
| 299 | 300 | |
|---|
| 300 | 301 | /* if clip is NULL, then use view rectangle as clip */ |
|---|
| 301 | | if( NULL == clip ) |
|---|
| | 302 | if( !clip ) |
|---|
| 302 | 303 | clip = view; |
|---|
| 303 | 304 | |
|---|