Skip to content

lifetime bugfix#2

Open
PetitVerglas wants to merge 1 commit intoerickpires:masterfrom
PetitVerglas:master
Open

lifetime bugfix#2
PetitVerglas wants to merge 1 commit intoerickpires:masterfrom
PetitVerglas:master

Conversation

@PetitVerglas
Copy link
Copy Markdown

The lifetime of "param_w_string.unwrap()" is shorter than the lifetime of "param_w_string.unwrap().as_raw()".
Thus, after "let param_ptr = param_w_string.unwrap().as_raw();", the pointed value seems not to be available anymore, and the call to "MediaInfo_Get" returns an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant