camerabin: fix structure handling in preview message
authorThiago Santos <ts.santos@sisa.samsung.com>
Fri, 30 May 2014 05:10:25 +0000 (02:10 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 30 May 2014 05:10:45 +0000 (02:10 -0300)
commit0ae4bc74ba3cedcb59b92804d5fb798a9b097a55
tree7706d91f3352cd67aa2a377716d82e0753d2f22b
parent0f4485fc66eb1fa46a4a924a82a4a6e43b12aacc
camerabin: fix structure handling in preview message

Avoid trying to modify the message structure as it isn't mutable.
Use a copy and post a new message if necessary.

Fixes failing tests.
gst/camerabin2/gstcamerabin2.c