Changeset d2910851e0b1feb21b3c3c453703995f10dd0348
- Timestamp:
- 04/10/07 20:21:57
(1 year ago)
- Author:
- Damien Fouilleul <damienf@videolan.org>
- git-committer:
- Damien Fouilleul <damienf@videolan.org> 1176229317 +0000
- git-parent:
[b1b629475241544d112726111687788394d96a4d]
- git-author:
- Damien Fouilleul <damienf@videolan.org> 1176229317 +0000
- Message:
libvlc_video_take_snapshot: removed kludge and fixed path_sanitize for win32
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd546db7 |
rd291085 |
|
| 159 | 159 | input_thread_t *p_input_thread; |
|---|
| 160 | 160 | |
|---|
| 161 | | char path[256]; |
|---|
| 162 | | |
|---|
| 163 | 161 | /* GetVout will raise the exception for us */ |
|---|
| 164 | 162 | if( !p_vout ) |
|---|
| … | … | |
| 166 | 164 | return; |
|---|
| 167 | 165 | } |
|---|
| | 166 | |
|---|
| | 167 | if( !psz_filepath ) |
|---|
| | 168 | { |
|---|
| | 169 | libvlc_exception_raise( p_e, "filepath is null" ); |
|---|
| | 170 | return; |
|---|
| | 171 | } |
|---|
| | 172 | |
|---|
| 168 | 173 | |
|---|
| 169 | 174 | p_input_thread = (input_thread_t*)vlc_object_get( |
|---|
| … | … | |
| 176 | 181 | } |
|---|
| 177 | 182 | |
|---|
| 178 | | snprintf( path, 255, "%s", psz_filepath ); |
|---|
| 179 | | var_SetString( p_vout, "snapshot-path", path ); |
|---|
| | 183 | var_SetString( p_vout, "snapshot-path", psz_filepath ); |
|---|
| 180 | 184 | var_SetString( p_vout, "snapshot-format", "png" ); |
|---|
| 181 | 185 | |
|---|
| r7761faf |
rd291085 |
|
| 842 | 842 | char *prev = str - 1; |
|---|
| 843 | 843 | #endif |
|---|
| | 844 | #ifdef WIN32 |
|---|
| | 845 | /* check drive prefix if path is absolute */ |
|---|
| | 846 | if( isalpha(*str) && (':' == *(str+1)) ) |
|---|
| | 847 | str += 2; |
|---|
| | 848 | #endif |
|---|
| 844 | 849 | while( *str ) |
|---|
| 845 | 850 | { |
|---|