Advertisement
Guest User

Untitled

a guest
Dec 6th, 2013
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. Index: gst-omx/omx/gstomxvideodec.c
  2. ===================================================================
  3. --- gst-omx.org/omx/gstomxvideodec.c 2013-12-04 00:22:26.341875959 +0000
  4. +++ gst-omx/omx/gstomxvideodec.c 2013-10-30 21:06:00.000000000 +0000
  5. @@ -2501,15 +2501,32 @@
  6. * parts of the caps have changed or nothing at all.
  7. */
  8. is_format_change |= port_def.format.video.nFrameWidth != info->width;
  9. +// GST_DEBUG_OBJECT (self, "%d", is_format_change);
  10. is_format_change |= port_def.format.video.nFrameHeight != info->height;
  11. +// GST_DEBUG_OBJECT (self, "%d", is_format_change);
  12. is_format_change |= (port_def.format.video.xFramerate == 0
  13. && info->fps_n != 0)
  14. || (port_def.format.video.xFramerate !=
  15. (info->fps_n << 16) / (info->fps_d));
  16. - is_format_change |= (self->codec_data != state->codec_data);
  17. +// GST_DEBUG_OBJECT (self, "%d", is_format_change);
  18. +// GST_DEBUG_OBJECT (self,"%p %p ", self->codec_data, state->codec_data);
  19. +// if(self->codec_data != NULL)
  20. +// {
  21. +// GST_DEBUG_OBJECT (self, "self:%d", gst_buffer_get_size (self->codec_data));
  22. +// }
  23. +// if(state->codec_data != NULL)
  24. +// {
  25. +// GST_DEBUG_OBJECT (self, "state:%d", gst_buffer_get_size (state->codec_data));
  26. +// }
  27. +
  28. +
  29. +
  30. +// is_format_change |= (self->codec_data != state->codec_data);
  31. +// GST_DEBUG_OBJECT (self, "%d", is_format_change);
  32. if (klass->is_format_change)
  33. is_format_change |=
  34. klass->is_format_change (self, self->dec_in_port, state);
  35. +// GST_DEBUG_OBJECT (self, "%d", is_format_change);
  36.  
  37. needs_disable =
  38. gst_omx_component_get_state (self->dec,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement