summaryrefslogtreecommitdiffstats
path: root/ext/dv
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2004-01-06 16:42:09 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2004-01-06 16:42:09 +0000
commit70ca50ae2130c4aaa50e98fc7dffde1ee45fa77b (patch)
treeae9dea7d1a6bebbd4d42e50e38d09153108a213b /ext/dv
parentd2f67bee5996ce95084e46de16cfc5bd32b81814 (diff)
ext/dv/gstdvdec.c: Fix caps negotiation.
Original commit message from CVS: * ext/dv/gstdvdec.c: (gst_dvdec_loop): Fix caps negotiation. * ext/dvdnav/dvdnavsrc.c: (dvdnavsrc_class_init), (dvdnavsrc_update_buttoninfo), (dvdnavsrc_get), (dvdnavsrc_get_event_mask), (dvdnav_handle_navigation_event), (dvdnavsrc_event): * ext/mpeg2dec/gstmpeg2dec.c: * gst-libs/gst/navigation/navigation.c: (gst_navigation_send_key_event), (gst_navigation_send_mouse_event): * gst-libs/gst/navigation/navigation.h: * gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_handle_src_event): * sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents): Super-simple first version of mouse and keyboard events. Clicking on a DVD menu now works, although it may not take you where you expected. * gst/sine/gstsinesrc.c: (gst_sinesrc_src_fixate): * gst/videotestsrc/gstvideotestsrc.c: (gst_videotestsrc_src_fixate): These fixate functions were broken - they never actually fixated :)
Diffstat (limited to 'ext/dv')
-rw-r--r--ext/dv/gstdvdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c
index 593ac65b..dfd48c13 100644
--- a/ext/dv/gstdvdec.c
+++ b/ext/dv/gstdvdec.c
@@ -743,7 +743,8 @@ gst_dvdec_loop (GstElement *element)
for (i=0; i < gst_caps_get_size(caps); i++) {
GstStructure *to_try_struct = gst_caps_get_structure (caps, i);
- GstCaps *try_caps = gst_caps_new_full (to_try_struct);
+ GstCaps *try_caps =
+ gst_caps_new_full (gst_structure_copy(to_try_struct), NULL);
/* try each format */
if (gst_pad_try_set_caps (dvdec->videosrcpad, try_caps) > 0) {