GNOME Bugzilla – Bug 709588
encodebin: Handle changes in encoding_profile::restriction during playback
Last modified: 2013-10-11 21:35:10 UTC
There are cases where we want to change the restrictions caps during playback, handle that in encodebin.
Created attachment 256652 [details] [review] encodebin: Handle changes in encoding_profile::restriction during playback
Review of attachment 256652 [details] [review]: Looks good in general but: ::: gst-libs/gst/pbutils/encoding-profile.c @@ +223,3 @@ + caps = gst_caps_copy (prof->restriction); + + gst_value_set_caps (value, caps); Why copy the caps? Why not just gst_value_set_caps (value, prof->restriction)?
Review of attachment 256652 [details] [review]: ::: gst-libs/gst/pbutils/encoding-profile.c @@ +223,3 @@ + caps = gst_caps_copy (prof->restriction); + + gst_value_set_caps (value, caps); So that we do not end up with read only caps on encodebin, not sure it was necessary indeed.
Then don't and push :)
Attachment 256652 [details] pushed as 4305e1c - encodebin: Handle changes in encoding_profile::restriction during playback