Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 07-19-2019, 05:40 PM   #1
Neutronic
Human being with feelings
 
Neutronic's Avatar
 
Join Date: Sep 2013
Posts: 359
Default GetMediaItemTakeInfo_Value(take, "P_ITEM") does not return a pointer

As per the thread title, when the GetMediaItemTakeInfo_Value function is called with the P_ITEM attribute it returns a number instead of a pointer to MediaItem.

Last edited by Neutronic; 07-19-2019 at 08:38 PM.
Neutronic is offline   Reply With Quote
Old 07-20-2019, 05:41 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,773
Default

You can use GetMediaItemTake_Item instead.
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is online now   Reply With Quote
Old 07-20-2019, 07:13 AM   #3
Neutronic
Human being with feelings
 
Neutronic's Avatar
 
Join Date: Sep 2013
Posts: 359
Default

Yes, thanks, that is what I usually use.

Neverthereless, I stumbled upon the bug when wanted to retrieve a parent item alongside a parent track (P_TRACK works fine) using the same approach.

Since the attribute probably exists for a reason I thought I'd better report that it's broken.
Neutronic is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.