search for: g_assert_not_reach

Displaying 20 results from an estimated 109 matches for "g_assert_not_reach".

Did you mean: g_assert_not_reached
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...swfdec_stream_install_handlers (stream); } break; + case SND_PCM_STATE_OPEN: + case SND_PCM_STATE_SETUP: + case SND_PCM_STATE_RUNNING: + case SND_PCM_STATE_DRAINING: + case SND_PCM_STATE_PAUSED: + case SND_PCM_STATE_DISCONNECTED: default: - break; + g_assert_not_reached (); } } diff --git a/libswfdec/swfdec_as_date.c b/libswfdec/swfdec_as_date.c index 079093f..cb10e26 100644 --- a/libswfdec/swfdec_as_date.c +++ b/libswfdec/swfdec_as_date.c @@ -482,12 +482,19 @@ swfdec_as_date_set_field (SwfdecAsContext *cx, SwfdecAsObject *object, set = FALSE; } br...
2007 Dec 23
0
2 commits - libswfdec/swfdec_as_array.c
...make gcc shut up (fixes #13788) diff --git a/libswfdec/swfdec_as_array.c b/libswfdec/swfdec_as_array.c index ee2c0a1..61a62e9 100644 --- a/libswfdec/swfdec_as_array.c +++ b/libswfdec/swfdec_as_array.c @@ -1043,6 +1043,7 @@ swfdec_as_array_foreach_sort_rename (SwfdecAsObject *object, } g_assert_not_reached (); + return NULL; } // fills fdata->object_new array using indexes based on the fdata->order @@ -1079,6 +1080,7 @@ swfdec_as_array_foreach_sort_indexedarray (SwfdecAsObject *object, } g_assert_not_reached (); + return FALSE; } // sets undefined values in the fdata->obj...
2007 Mar 19
0
7 commits - libswfdec/jpeg libswfdec/swfdec_button_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_video.c player/swfdec_debug_movies.c
...return "onDragOver"; + case SWFDEC_BUTTON_OUT_DOWN_TO_IDLE: + return "onReleaseOutside"; + case SWFDEC_BUTTON_IDLE_TO_OVER_DOWN: + return "onDragOver"; + case SWFDEC_BUTTON_OVER_DOWN_TO_IDLE: + return "onDragOut"; + default: + g_assert_not_reached (); + return NULL; + } +} static void swfdec_button_movie_execute (SwfdecButtonMovie *movie, SwfdecButtonCondition condition) { + const char *name; + if (movie->button->menubutton) { g_assert ((condition & (SWFDEC_BUTTON_OVER_DOWN_TO_OUT_DOWN \...
2007 Jun 19
0
Branch 'as' - test/dump.c
...e ? "move" : "place"); + if (has_char) { + SwfdecCharacter *c; + c = swfdec_swf_decoder_get_character (dec, swfdec_bits_get_u16 (&bits)); + if (c) + g_print (" %s %u", G_OBJECT_TYPE_NAME (c), c->id); } - break; - default: - g_assert_not_reached (); - } + g_print ("\n"); + } + break; + case SWFDEC_TAG_REMOVEOBJECT: + case SWFDEC_TAG_REMOVEOBJECT2: + { + SwfdecBits bits; + swfdec_bits_init (&bits, buffer); + if (tag == SWFDEC_TAG_REMOVEOBJECT) + swfdec_bits_get_u16 (&bits); + g_print (&quo...
2020 Mar 12
0
[RFC for QEMU] virtio-balloon: Add option thp-order to set VIRTIO_BALLOON_F_THP_ORDER
...ction.mr, > - section.offset_within_region, &pbp); > - } else if (vq == s->dvq) { > - balloon_deflate_page(s, section.mr, section.offset_within_region); > - } else { > - g_assert_not_reached(); > + trace_virtio_balloon_handle_output(memory_region_name(section.mr), > + pa); > + if (!qemu_balloon_is_inhibited()) { > + if (vq == s->ivq) { > + balloo...
2007 Apr 11
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...(context->version <= 6) { + double d = swfdec_as_value_to_number (context, value); + return d != 0.0 && !isnan (d); + } else { + return SWFDEC_AS_VALUE_GET_STRING (value) != SWFDEC_AS_STR_EMPTY; + } + case SWFDEC_TYPE_AS_ASOBJECT: + return TRUE; + default: + g_assert_not_reached (); + return FALSE; + } +} + diff --git a/libswfdec/swfdec_as_types.h b/libswfdec/swfdec_as_types.h index dc390cd..10f3a9c 100644 --- a/libswfdec/swfdec_as_types.h +++ b/libswfdec/swfdec_as_types.h @@ -265,6 +265,8 @@ typedef enum { SWFDEC_AS_ACTION_GOTO_FRAME2 = 0x9F } SwfdecAsAction;...
2007 Apr 05
0
Branch 'as' - 9 commits - configure.ac libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...bswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index 47458b9..1adebe6 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -505,16 +505,18 @@ swfdec_as_context_eval_get_property (Swf if (obj) { swfdec_as_object_get (obj, name, ret); } else { - g_assert_not_reached (); -#if 0 - if (cx->fp == NULL || cx->fp->scopeChain == NULL) - return JS_FALSE; - if (!js_FindProperty (cx, (jsid) atom, &obj, &pobj, &prop)) - return JS_FALSE; - if (!prop) - return JS_FALSE; - return OBJ_GET_PROPERTY (cx, obj, (jsid) prop->id...
2007 Jan 31
0
Branch 'interpreter' - 3 commits - libswfdec/js libswfdec/swfdec_script.c
...!JS_ValueToECMAUint32 (cx, cx->fp->sp[-2], &b)) + return JS_FALSE; + + switch (action) { + case 0x60: + d = (int) (a & b); + break; + case 0x61: + d = (int) (a | b); + break; + case 0x62: + d = (int) (a ^ b); + break; + default: + g_assert_not_reached (); + return JS_FALSE; + } + + cx->fp->sp--; + return JS_NewNumberValue (cx, d, &cx->fp->sp[-1]); +} + +static JSBool swfdec_action_shift (JSContext *cx, guint action, const guint8 *data, guint len) { guint32 amount, value; @@ -1414,6 +1443,54 @@ swfdec_action_target_...
2007 Aug 17
0
Branch 'vivi' - 3 commits - player/Makefile.am player/swfdec_debug_movies.c player/swfdec_debug_movies.h vivified/core vivified/ui
...OVIES_COLUMN_MOVIE: - return G_TYPE_POINTER; - case SWFDEC_DEBUG_MOVIES_COLUMN_NAME: - return G_TYPE_STRING; - case SWFDEC_DEBUG_MOVIES_COLUMN_DEPTH: - return G_TYPE_INT; - case SWFDEC_DEBUG_MOVIES_COLUMN_TYPE: - return G_TYPE_STRING; - default: - break; - } - g_assert_not_reached (); - return G_TYPE_NONE; -} - -static gboolean -swfdec_debug_movies_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) -{ - SwfdecDebugMovies *movies = SWFDEC_DEBUG_MOVIES (tree_model); - GNode *node; - guint i, depth; - int *indices; - - REPORT; - depth = gtk_tree_...
2007 May 29
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_math.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c
...swfdec_sprite_movie_init_movie (SwfdecMo SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov); mov->n_frames = movie->sprite->n_frames; + g_assert (movie->sprite->parse_frame > 0); swfdec_sprite_movie_goto (mov, 0); if (!swfdec_sprite_movie_iterate_end (mov)) { g_assert_not_reached (); diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c index 4e59456..7df13f4 100644 --- a/libswfdec/swfdec_tag.c +++ b/libswfdec/swfdec_tag.c @@ -252,6 +252,13 @@ tag_func_define_sprite (SwfdecSwfDecoder } } + /* sanity check the sprite */ + if (s->parse_sprite->n_fra...
2007 Apr 05
0
4 commits - libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_stream.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_mad.c
...dioOut format) -{ - AVCodecContext *ctx; - - ctx = swfdec_codec_ffmpeg_init (CODEC_ID_ADPCM_SWF); + switch (type) { + case SWFDEC_AUDIO_FORMAT_ADPCM: + id = CODEC_ID_ADPCM_SWF; + break; + case SWFDEC_AUDIO_FORMAT_MP3: + id = CODEC_ID_MP3; + break; + default: + g_assert_not_reached (); + id = 0; + break; + } + ctx = swfdec_codec_ffmpeg_init (id); ctx->sample_rate = SWFDEC_AUDIO_OUT_RATE (format); ctx->channels = SWFDEC_AUDIO_OUT_N_CHANNELS (format); @@ -190,15 +191,8 @@ swfdec_codec_ffmpeg_audio_finish (gpoint } -const SwfdecAudioCodec swfdec_...
2007 Jul 16
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_oss.c
...emoved (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound) +{ + GList *walk; + + for (walk = sound->streams; walk; walk = walk->next) { + Stream *stream = walk->data; + if (stream->audio == audio) { + swfdec_stream_close (stream); + return; + } + } + g_assert_not_reached (); +} + +SwfdecPlayback * +swfdec_playback_open (SwfdecPlayer *player, GMainContext *context) +{ + SwfdecPlayback *sound; + const GList *walk; + + g_return_val_if_fail (SWFDEC_IS_PLAYER (player), NULL); + g_return_val_if_fail (context != NULL, NULL); + + sound = g_new0 (SwfdecPlayback, 1);...
2007 Dec 10
0
5 commits - libswfdec/jpeg libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_cached.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_flash_security.c libswfdec/swfdec_image.c
...dec_flash_security.c b/libswfdec/swfdec_flash_security.c index 5f31d4a..03f15a4 100644 --- a/libswfdec/swfdec_flash_security.c +++ b/libswfdec/swfdec_flash_security.c @@ -217,6 +217,8 @@ swfdec_flash_security_allow_url (SwfdecSecurity *guard, const SwfdecURL *url, break; default: g_assert_not_reached (); + allowed = FALSE; + break; } callback (url, allowed, user_data); diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c index ee200d9..be63312 100644 --- a/libswfdec/swfdec_image.c +++ b/libswfdec/swfdec_image.c @@ -451,18 +451,21 @@ swfdec_image_lossless_load (Sw...
2007 Oct 14
0
10 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...0, -rect.height); + y -= rect.height; + continue; + }*/ pango_layout_iter_get_line_extents (iter_line, NULL, &rect); pango_extents_to_pixels (NULL, &rect); - while (y + rect.y + rect.height < limit.y0) - { - if (!pango_layout_iter_next_line (iter_line)) - g_assert_not_reached (); - pango_layout_iter_get_line_extents (iter_line, NULL, &rect); - pango_extents_to_pixels (NULL, &rect); - } - while (y + rect.y <= limit.y1 && - y + rect.y + rect.height <= SWFDEC_GRAPHIC (text)->extents.y1) - { - cairo_rel_move_to (cr, 0, - pan...
2007 Jan 29
0
3 commits - autogen.sh configure.ac player/.gitignore player/Makefile.am player/swfdec_playback_alsa.c player/swfdec_playback.c player/swfdec_playback_none.c
...-audio_removed (SwfdecPlayer *player, SwfdecAudio *audio, Sound *sound) -{ - GList *walk; - - for (walk = sound->streams; walk; walk = walk->next) { - Stream *stream = walk->data; - if (stream->audio == audio) { - swfdec_stream_close (stream); - return; - } - } - g_assert_not_reached (); -} - -gpointer -swfdec_playback_open (SwfdecPlayer *player, GMainContext *context) -{ - Sound *sound; - const GList *walk; - - g_return_val_if_fail (SWFDEC_IS_PLAYER (player), NULL); - g_return_val_if_fail (context != NULL, NULL); - - sound = g_new0 (Sound, 1); - sound->player = g_ob...
2007 Nov 08
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_pa.c
...emoved (SwfdecPlayer *player, SwfdecAudio *audio, SwfdecPlayback *sound) +{ + GList *walk; + + for (walk = sound->streams; walk; walk = walk->next) { + Stream *stream = walk->data; + if (stream->audio == audio) { + swfdec_stream_close (stream); + return; + } + } + g_assert_not_reached (); +} +static void +context_state_callback (pa_context *pa, void *data) { + switch (pa_context_get_state(pa)) { + case PA_CONTEXT_UNCONNECTED: + case PA_CONTEXT_CONNECTING: + case PA_CONTEXT_AUTHORIZING: + case PA_CONTEXT_SETTING_NAME: + case PA_CONTEXT_READY: + break; + + case PA_CONT...
2007 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...ble d; + if (!JS_ValueToNumber (cx, val, &d)) + return 0; + return d != 0.0 && !isnan (d); + } else if (JSVAL_IS_NULL (val)) { + return JS_FALSE; + } else if (JSVAL_IS_VOID (val)) { + return JS_FALSE; + } else if (JSVAL_IS_OBJECT (val)) { + return JS_TRUE; + } + g_assert_not_reached (); + return JS_FALSE; +} + +static void +swfdec_value_to_boolean_7 (SwfdecAsContext *cx, jsval val) +{ + if (JSVAL_IS_BOOLEAN (val)) { + return JSVAL_TO_BOOLEAN (val); + } else if (JSVAL_IS_INT (val)) { + return JSVAL_TO_INT (val) != 0; + } else if (JSVAL_IS_DOUBLE (val)) { + double...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...case SWFDEC_SPRITE_ACTION_ADD: - case SWFDEC_SPRITE_ACTION_UPDATE: - content = action->data; - if (content->depth == depth) - return content; - break; - case SWFDEC_SPRITE_ACTION_REMOVE: - if (GPOINTER_TO_INT (action->data) == depth) - return NULL; - break; - default: - g_assert_not_reached (); - } - } - } - return NULL; + return g_hash_table_lookup (sprite->live_content, GINT_TO_POINTER (depth)); } static void @@ -184,6 +156,30 @@ swfdec_content_update_lifetime (SwfdecSp content->sequence->end = sprite->parse_frame; } +static void +swfdec_content_up...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...+ case SWFDEC_RESOURCE_REQUESTED: + message = SWFDEC_AS_STR_URLNotFound; + break; + case SWFDEC_RESOURCE_OPENED: + message = SWFDEC_AS_STR_LoadNeverCompleted; + break; + case SWFDEC_RESOURCE_NEW: + case SWFDEC_RESOURCE_COMPLETE: + case SWFDEC_RESOURCE_DONE: + g_assert_not_reached (); + message = SWFDEC_AS_STR_EMPTY; + break; } - swfdec_resource_emit_signal (instance, SWFDEC_AS_STR_onLoadProgress, vals, 2); - SWFDEC_AS_VALUE_SET_INT (&vals[0], 0); /* FIXME */ - swfdec_resource_emit_signal (instance, SWFDEC_AS_STR_onLoadComplete, vals, 1); + swfdec_reso...
2007 Oct 14
1
libswfdec/swfdec_text_field.c
...ne_width, 0); + if (line_width < width) { + if (block->align == PANGO_ALIGN_RIGHT) { + layout->render_offset_x += width - line_width; + } else if (block->align == PANGO_ALIGN_CENTER) { + layout->render_offset_x += (width - line_width) / 2; + } else { + g_assert_not_reached (); + } + } + } + skip = 0; }